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 to update navigatio after cloning page

archie5
Tera Expert

Hi, I have cloned an oob Portal page A to page B and created page route maps to point all widget from A to B. now how do I redirect the navigation? Suppose some menu item/widget/button were leading users to page A, how will these route to page B now? Also how will I find these item/widget/button that were leading users to page A in the first place?

4 REPLIES 4

RaghavSh
Mega Patron

@archie5 Page route map should take care of this as well? isn't it? did you try testing after creating the page route map?


Please mark the answer correct/helpful accordingly.


Raghav
MVP 2023
LinkedIn

Thanks for your response. Page route didn't take care of the navigation and that's what the SN documentation also says. 

@archie5 On page A add a widget with no HTML OR Server code but just client code to redirect to pageB.

 

Client Controller:

window.location.href=ā€œ/sp?id=pageBā€

 

This will take care of all navigations.

 

Replace sp with tour portal suffix and page id of B.


Please mark the answer correct/helpful accordingly.


Raghav
MVP 2023
LinkedIn

@archie5 did you get this working?


Raghav
MVP 2023
LinkedIn