
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-22-2017 09:18 AM
Is there a way to configure the Service Portal as the landing page when a user hits the https://myinstance.service-now.com URL? I want users to be able to access the Public Service Portal without going through any logins
I have tried playing around with SPEntryPage().getLoginURL() but haven't had any success
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-22-2017 01:33 AM
I managed to get this to work by going back to using SPEntryPage().getLoginURL()
This is the code for getLoginURL() function.
getLoginURL: function() {
var session = gs.getSession();
var nt = session.getProperty("nav_to");
var sPage = session.getProperty("starting_page");
if (nt == "welcome.do")
session.clearProperty("nav_to");
if (!sPage && !nt)
session.putProperty("starting_page", gs.getProperty("glide.login.home"));
if(sPage != "side_door.do?"){
return this.portal;
}
},
Dont forget to update the Sys Property glide.entry.page.script to define your getLoginURL function, you refer to this page to do that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-22-2017 01:46 PM
Using the UI Scripts discussed in the below thread you should be able to do that.
UI Script to redirect non roled users to ESS not working properly.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-23-2017 02:00 AM
Thanks but this solution will still require me to login first and then redirect. I want something that will take the user straight to the /sp/ as they hit https://myinstance.service-now.com
Thanks,
Ayman

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-22-2017 01:33 AM
I managed to get this to work by going back to using SPEntryPage().getLoginURL()
This is the code for getLoginURL() function.
getLoginURL: function() {
var session = gs.getSession();
var nt = session.getProperty("nav_to");
var sPage = session.getProperty("starting_page");
if (nt == "welcome.do")
session.clearProperty("nav_to");
if (!sPage && !nt)
session.putProperty("starting_page", gs.getProperty("glide.login.home"));
if(sPage != "side_door.do?"){
return this.portal;
}
},
Dont forget to update the Sys Property glide.entry.page.script to define your getLoginURL function, you refer to this page to do that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-22-2017 01:38 AM
Please don't use UI Scripts... just refering to the post above. and I see you found the way as well. There is also a property you can set so the end user cant just change the URL later and get into the normal UI
Can read about it here: Redirect end users to portal
And for those who want to see more about the SPEntryPage etc.: Redirect End users to different portals