Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

How can i redirect UI page rather than going to nav_to.do

sam1212
Mega Expert

Hi All,

I have a UI page.

https://instance.service-now.com/test.do when i am trying to do access this URL for the first time , system is opening this page in side the https://instance.service-now.com/nav_to.do?uri=/test.do

Instead i would like to redirect the user to   this page https://instance.service-now.com/test.do

how is it possible to redirect this page ? and also we are using SSO to authenticate .

Any help is appreciated

12 REPLIES 12

Hi can you lease help on the below requierment :

 

find_real_file.png

I Nikesh, I'm not sure about the requirement of redirecting the navpage.do. The navpage.do is usually called once the user is already authenticated so I don't see the point of redirecting that page to a login page.

As for the custom login page all you need to do is set the "glide.entry.page.script" property (sys_properties.list) with your custom page. You can either call a script include if you want to add some logic or you could simply put a string of the page including the double quotes for example "custom_login.do". For an example of a entry page script you can take a look at the "getLoginURL" function in the "SPEntryPage" script include.

This UI page should be set as public (create an active record in sys_public.list with the name of the UI page without the ".do").

Abhishek68
Kilo Contributor

Hi Sam,

Can you please tell that how you solved the above issue as I am also facing the same.