Firt page redirection after login
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2024 03:06 AM
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2024 03:13 AM
I think it executes only once.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2024 03:17 AM
If it executes once . ITIL users after redirected to portal they can able to redirect to ITIL view right ? this is not happening though an ITIL user once I redirected to portal page the users not able to navigate back to ITIL View

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2024 03:32 AM
Hmm... I understand the requirement now.
There are some OOB log statements added to the script Include. Could you confirm you see those executed the 'second' time (i.e, when an ITIL users tries to manually change from SP to ITIL view)?
I have a feeling this has something to do with the if/else condition in your script.
Maybe try using isServicePortalURL to determine if the view change occurs from a Service Portal and if the user has itil role, then return false...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2024 03:36 AM
yeah, Its calling that script include again. I will try the condition you have provided