How to redirect from the Base URL of the instance to the Service Portal Homepage for users who have not logged in?

daniel_lalov
Tera Contributor

I need to redirect users who are trying to access the base url of the instance, and send them to the Service Portal Homepage. I am using SSO, and this works when the user first access the base URL and gets sent to the homepage as needed. However, once the users goes to SSO sign in, even   just visiting the page, every attempt to access the base url while logged out sends the user to the SSO and not the homepage.

So far I have narrowed it down to being a cache problem, however is there a way that can be fixed?

8 REPLIES 8

henry_cheng
ServiceNow Employee
ServiceNow Employee

Hi Daniel,



I am a bit confused about your description.


Is this behavior happening when user is not logged in or logged-in?


Can you put it more clearly step-by-step to explain what page redirection you want to achieve?



Regards


Henry


Hey Henry,



The functionality we are trying to achieve is to have all external users(who have not logged in using SSO) to be redirected to the Service Portal when they try to access the base link of the instance.



The current status of the issue is that when an user who has never visited the instance in any way tries to access the base, he gets redirected to the SP as he should be. However, once the user opens the SSO login page or the login page for SN, it gets cached. Meaning if the user tries to access the base url again, he gets sent to the SSO login page/or SN login page, and not to the SP as it should. This gets fixed after you do a cache.do and close the browser completety.


Hi Daniel,



For all external users (who have not logged in using SSO), you want them to be redirected to the Service Portal page when they access the base link of the instance. Do you expect this page redirection to happen when these users is NOT logged-in?



The content in your second paragraph seems to be a cache/cookie issue. Can you reproduce it using Chrome incognito mode?



Regards


Henry


Hey Henry,



We are using SSO for logging in of all users except admins who use side_door.do. The only way to log in the instance should be SSO.



The idea is to have everyone who is not logged in the instance in any way to be redirected to service portal if he tries to access the base url.