Welcome page (login) redirection to SP login page

John241
Tera Expert

Hi ! 

I need your help. When i'm connecting to my instance https://dev48627.service-now.com/ for loggin I want to be redirect automatically to this logging page = https://dev48627.service-now.com/sp/?id=landing 

How could I do that please?

Thanks

1 ACCEPTED SOLUTION

Ahh! Sorry, I misunderstood.

In that case change the system property: glide.entry.page.script

The value is probably: new CMSEntryPage().getEntryPage()

Change it to: new SPEntryPage().getLoginURL()

 

That should do it! Please mark my answer as correct if so.

Thanks,

Josh

View solution in original post

6 REPLIES 6

Josh Virelli
Tera Guru

Hi John,

You need to edit this script include:SPEntryPage.

change this line to whatever the url suffix is for your portal if necessary (it's line 22 for me)

 this.portal = "/sp/";   

And then the function getFirstPageURL() in the script include to set the conditions for who should be redirected to the portal

Here's some documentation: https://docs.servicenow.com/bundle/helsinki-servicenow-platform/page/build/service-portal/concept/c_...

Let me know if you need more help! 🙂

Josh

Hello, 

thanks for you're answer

It's the redirection after login not before. For login i want to be redirect to this page https://dev48627.service-now.com/sp/?id=landing  

Ahh! Sorry, I misunderstood.

In that case change the system property: glide.entry.page.script

The value is probably: new CMSEntryPage().getEntryPage()

Change it to: new SPEntryPage().getLoginURL()

 

That should do it! Please mark my answer as correct if so.

Thanks,

Josh

Thank you, i have tried before but I made mistake. now it's working fine. Thanks