- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2020 08:42 AM
Hi,
In our IDP, when I put login URL as instance.service-now.com/navpage.do, after login it takes to Homepage with portal page in the content frame.
We wanted to redirect SSO users to SP portal, so I changed the IDP login URL to instance.service-now.com/sp.
Now when the user logs in, it takes them to the SP portal logjn screen, not the SP portal Homepage. Even if I try to relogin from the portal, it loops back to the SP Portal Login page.
Strange this is, if I try Test Connection from the IDP, it lets user login and shows the SP portal homepage.
Has anyone faced this issue earlier?
Thanks
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2020 10:49 AM
Did you create new system properties that hold the urls?
If you did try commenting out the new code you entered in the script and enter this
else if (this.redirectURL)
url = sppUrl;
Now that will always redirect to the portal.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2020 10:39 AM
Hi Miguel,
I used your script. Still the same result.
It is like: If I enter instance.service-now.com and then hit external login to enter sso id, it takes me to nav_to.uri/sp page
If I hit the url instance.service-now.com/csm and go for sso, it takes me to the csm homepage.
Is there a way I can send a static page to the customers that will always redirect to portal homepage?
Currently, I am using
https://instance.service-now.com/login_with_sso.do?glide_sso_id=<idp_sys_id>
It always takes back to nav_to page, no matter what.
I have checked the following:
1. SpEntry Page
2. System Properties: glide.entry.page etc
3. Installation exit
Still can not find the cure.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2020 10:49 AM
Did you create new system properties that hold the urls?
If you did try commenting out the new code you entered in the script and enter this
else if (this.redirectURL)
url = sppUrl;
Now that will always redirect to the portal.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2020 11:11 AM
And....
it worked!
Thank you so much.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2020 11:16 AM
AWESOME SAUCE!!! GLAD IT WORKED OUT!!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2020 12:20 AM
Hi Miguel,
There is one minor thing in this. If the user logs in via SSO, enters the portal and hits the SSO url again, they are redirected again to the nav_to page.
Is this something the script include can take care of?