The system property "glide.entry.first.page.script" can be setup to point to the SPEntryPage script include that would allow non-role users to be redirected to service portal after logging in.
However, after logging in they are not able to switch to platform UI (i.e. by removing /sp from the URL).
This is because the script include runs multiple times after the user logs in which results in the redirection back to the portal each time.
Steps to Reproduce
1) Follow documentation to setup Service portal redirection for non-roled users (https://docs.servicenow.com/bundle/london-servicenow-platform/page/build/service-portal/concept/c_SPSSOLoginAndRedirects.html)
2) Impersonate a non-role user (eg. Abel Tuter)
3) You should be redirected to /sp
4) Remove the /sp from the URL, notice how you are sent back to /sp
Expected behavior: On login non-role users will get sent to /sp. If desired the users can remove/change URL path to navigate to Platform UI.
Actual behavior: Users are forced to stay in /sp. Removing/Changing URL triggers SPEntryPage script and redirects back to SP.
In script include - SPEntryPage, in the getFirstPageURL method
if (user.hasRoles() && !redirectURL && !isServicePortalURL)
if (!redirectURL && !isServicePortalURL)
Users can append /?.do in the URL (i.e. instancename.service-now.com/?.do)
Related Problem: PRB1319325