Firt page redirection after login

Ragavi
Tera Contributor

Hi ,

The requirement is to redirect all the users to service portal page after login . After logged in is the users have ITIL access should have option to navigate to ITIL view (that option can be added in header menu ) . 

Here I have tried to modify SPEntrypage script include , by doing so I can able to redirect all the users to portal page but not able to redirect ITIL users again to ITIL view .

 

is that SPEntrypage scrip include will be called only once during login? or it will be call whenever  the URL  changes 

 

 

Thanks,

Ragavi

5 REPLIES 5

Hi I have added below code .

isServicePortalURL - is returning false   when I try to login and after login trying to access native UI 

 if (user.hasRole('admin') && !redirectURL && !isServicePortalURL){
            gs.log("scriptInclude " + "redirectURL :  " +redirectURL + "isServicePortalURL : " +isServicePortalURL  );
             
             return;
        }
           
        if(user.hasRole('itil') && redirectURL && !isServicePortalURL){
            gs.log("scriptInclude 2" + "redirectURL :  " +redirectURL + "isServicePortalURL : " +isServicePortalURL  );
            return;
        }
 
Please let me know is there condition that I can try