Configure Service Portal as Landing Page

ayman_h
Kilo Sage
Kilo Sage

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

1 ACCEPTED SOLUTION

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.


View solution in original post

7 REPLIES 7

HI Goran,


I've created the property 'glide.entry.loggedin.page_ess' and gave portal suffix in value field. Also I have other properties   (


*   PROPERTY                                               VALUE


*   glide.entry.page.script                 new CMSEntryPage().getEntryPage();


*   glide.entry.first.page.script     new SPEntryPage().getFirstPageURL(); )



Still Specific URL's were taking end user to Specific UI parts.


Where I'm missing? Should I have to call this property   somewhere in script include besides just creating it.


goranlundqvist


Thanks


     


lSurya 24
Giga Guru

Hello Ayman,



Navigate to the portals -> your sp portal and you can find a login field. If you want a page to show before login, you can create a page in service portals and check public and include that page in login field of the portal record. or you can create a page in portal and specify it as a public and give that URL to users to access.


Thanks Surya, I was not aware of that.



In this case, I was looking to get the end-user to land on /sp/ instead of a login page, which I achieved using getLoginURL to redirect to /sp/.



Thanks,
Ayman