Redirection [Service Portal]

Ramel
Mega Guru

Hi Community,

I just want to ask about the redirection on service portal. We have some service portals setup and HR is setup as the default. When user tries to login to the exact link of the service portal [not the default HR], it will ask to authenticate, then after authentication instead of going to the exact service portal link, it will direct the user to the HR service portal.

For example, I will login to service-now.com/portalA, instead of going there directly it goes to the default service portal setup which is service-now.com/HR. Is this a normal behavior as HR being setup as default or should it go to the exact link specified when you try to login which in my case is service-now.com/portalA?

Any advice? Thanks in advance.

Regards,

1 ACCEPTED SOLUTION

shloke04
Kilo Patron

Hi,

This is expected and behaving correctly as per design. In order to understand this how this is controlled you need to look at the below Script Include where this might be set as a Default Portal as shown below:

1) Script Include : SPEntryPage

Link of Script Include:

 https://instance.service-now.com/nav_to.do?uri=sys_script_include.do?sys_id=3647c37253221200b0b0547cedc587fd

Replace "instance' with your instance name.

find_real_file.png

Also to note there are two System Property which controls the default redirection to the default portal i.e. listed below:

1) glide.entry.page.script

2) glide.entry.first.page.script

You can read about these property in detail in below link:

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0746730

Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke

Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke

View solution in original post

5 REPLIES 5

Rajat_Choudhary
Tera Expert
Hi Ramel, Your assumption is correct. This is a normal behavior as HR being setup as default. It automatically redirects to the set default portal for the set of group or users. Thanks, Please mark the answer as helpful and correct, if it clarified your doubt.
Hope this answers will be helpful.
Please mark the answer as helpful and correct.

Best Regards,
Rajat Choudhary

shloke04
Kilo Patron

Hi,

This is expected and behaving correctly as per design. In order to understand this how this is controlled you need to look at the below Script Include where this might be set as a Default Portal as shown below:

1) Script Include : SPEntryPage

Link of Script Include:

 https://instance.service-now.com/nav_to.do?uri=sys_script_include.do?sys_id=3647c37253221200b0b0547cedc587fd

Replace "instance' with your instance name.

find_real_file.png

Also to note there are two System Property which controls the default redirection to the default portal i.e. listed below:

1) glide.entry.page.script

2) glide.entry.first.page.script

You can read about these property in detail in below link:

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0746730

Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke

Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke

Ramel
Mega Guru

Hi @shloke04 @Rajat_Choudhary ,

Just a follow up question. Since it is the expected behavior that there is a SPEntryPage, is it possible to customize it? Something that if for example rather than having a default Service Portal setup, it is like when I use the URL for example https://service-now.com/portalA, it will go to portalA instead of the default HR service portal? Is this achievable? Do you have any idea how can that be achieved?

Regards,

Ramel

Yes, you can achieve that. You need to look at this function in the same script include named as"getFirstPageURL" as shown below:

find_real_file.png

You need to play round here to get it working.

Regards,
Shloke

Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke