Redirect user to custom page after login

ah16
Mega Expert

Hi,

How do we redirect user after login to a custom page?

 

Thanks,

Ashraf

 

1 ACCEPTED SOLUTION

The SN Nerd
Giga Sage
  1. Ensure the System Property glide.entry.first.page.script to new SPEntryPage().getFirstPageURL().
  2. Modify line Script Include SPEntryPage around line 69 to add something like follows:
// Redirect all users to a custom page, unless SP or redirect
if (!redirectURL && !isServicePortalURL)
   return 'your_custom_page.do';

Some trial and error may be required.

 


ServiceNow Nerd
ServiceNow Developer MVP 2020-2022
ServiceNow Community MVP 2019-2022

View solution in original post

2 REPLIES 2

The SN Nerd
Giga Sage
  1. Ensure the System Property glide.entry.first.page.script to new SPEntryPage().getFirstPageURL().
  2. Modify line Script Include SPEntryPage around line 69 to add something like follows:
// Redirect all users to a custom page, unless SP or redirect
if (!redirectURL && !isServicePortalURL)
   return 'your_custom_page.do';

Some trial and error may be required.

 


ServiceNow Nerd
ServiceNow Developer MVP 2020-2022
ServiceNow Community MVP 2019-2022

Kunal Varkhede
Tera Guru

Hi,

In addition to Paul, also check below community blog

6 ways to set up your Service Portal for redirection SUCCESS!

 

Thanks,

Kunal