Redirect to a specific page while using login.do on URL

JC S_
Mega Guru

We need a way to show a specific page after a login.do URL. Currently we are only able to redirect to default service portal. For example the URL of the page is instance.service-now.com/pagex, how do we incorporate the login.do then redirect to that page?

Current (working but redirects to default service portal only)

instance.service-now.com/login.do?user_name=XXXX&user_password=XXXXX&sys_action=sysverb_login

12 REPLIES 12

Hi,

Please see the below one more link. I believe it's helpful for you

Redirect to page after login

Thanks

PKG

Hi, I appreciate the help but it seems like this is setting up a global redirect after login. What we need to achieve specifically is for a specific user only. On our sample, instance.service-now.com/login.do?user_name=XXXX&user_password=XXXXX&sys_action=sysverb_login you will notice that this will directly login user XXXX without having to type any login credential. However we want it to redirect to a specific page like target page. We tried instance.service-now.com/login.do?user_name=XXXX&user_password=XXXXX&sys_action=sysverb_login&uri=targetpage but it doesn't work.

Daniele B
Tera Contributor

Hi, I do not know if you need anymore, but I have exatly what you needed .

 

instead of "login.do" you can use "nav_to?uri=targetpage"

 

If you are not authenticated, it will bring you to a "login page" and after, it will redirect you to targetpage.

 

I think that it is as you need