5

I want to built a link that you click and depending on your user group it redirects you to a certain page. Is the same possible for a redirect page?

9
  • You can use different ContentEditor (Script) WebParts for Each Group, set the Target Audience on each WebPart to match your groups.

  • Inside each Webpart add a script which sets a global _MyGroupName variable

    _MyGroupName='A';
    
  • Add a ContentEditor Webpart at the bottom of the page which executes code for everyone

    switch(_MyGroupName){
     case('A'): url='';
        break;
     case('B'): url='';
        break;
     case('C'): url='';
        break;
    }
    document.location=url;
    

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.