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

I don't see any particular configuration other than my last post related to the page not opening with the nav_to.



There might also be SSO rules that could be applied but I never tried that, but you can try to search for it, there is some info online about this.


sam1212
Mega Expert

Hi Laurent,



I figured out that when we try to access the UI page first time and after SSO it will open the page in nav_to.do page.



https://instance.service-now.com/uipage.do




But we do something like this


https://instance.service-now.com/test/uipage.do


add any param in front of UI page it will not open in nav_to.do servicenow saml update will consider as a CMS page when we login first time.


Hi Sam1212,

Can you explain why this works? We had a similar issue and this worked for us but I would like to understand why it does work.

Thanks,

Joshua Anderson

sam1212
Mega Expert

No need to create any CMS sites or Pages. Just adding a url param will work,


Yes sorry if that was unclear. Has I said I was not sure if the site (CMS) had to exist or not. And no redirection script is required simply using your existing UI page.