Navigation stack
-
- UpdatedJan 30, 2025
- 2 minutes to read
- Yokohama
- Navigation and UI
The navigation stack is the portion of the ServiceNow suite of applications that determines where a user is redirected after the update of a record.
An administrator can cause page references to be manually inserted into the navigation stack
when a link in the Navigation Page is clicked. This is done by modifying a
module definition to include an argument of sysparm_stack with a string value
equal to the URL reference to the page to be inserted into the stack. The administrator can also
override the redirection determined by the stack by creating a business rule or editing an
existing one to include gs.setRedirect("http://redirect_page.com")
.
Operating parameters of the navigation stack

Inserting pages to the navigation stack

Overriding the redirection behaviors of the navigation stack with onEvent business rules
The redirection behaviors that occur as a result of navigation stack behaviors can be overridden using onEvent business rules. This override is performed by using the function gs.setRedirect. Doing so overrides the redirection as determined by the navigation stack, when the specified event occurs. The function gs.setRedirect takes a string argument that is a URL for the page that the user is redirected to. This URL can be external, for example: gs.setRedirect('http://www.google.com').