Dashboard Reverting Back to Previous Dashboard after back button
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
I've created a case with ServiceNow about this issue but wanted to reach out to the community to see if they're experiencing this issue and possibly found a way to resolve it.
Since upgrading to Zurich and Platform Analytics on Friday, December 5, we've come across an issue with ServiceNow reverting back to the previous dashboard after clicking into a record from the list view report.
Here's an example: If my default dashboard upon loading is set to Dashboard A but I change it to Dashboard B and click into a record from the list view from a report, then select the back button in ServiceNow (not the browser's back button), it will revert me back to Dashboard A instead of showing me Dashboard B.
The only way around this is selecting Dashboard B, refreshing the browser, selecting a record, clicking the back button. This directs me back to Dashboard B, but everyone shouldn't have to do that in order for it to work as expected. This is happening regardless if we click into a record and immediately click back (<), Save, or Update.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago - last edited 3 weeks ago
I'm assuming you are on the /platform-analytics-workspace/dashboards/ route. Seems like navigating away from the dashboards page wipes the last url from the navigation stack.
To observe, call the bottom method of the session navigation stack after changing dashboards from the top to see that changing the dashboard updates the navigation stack. But then click on the record in the list report and pop the last url from the stack and see that the bottom is not the page you'd expect.
gs.info(gs.getSession().getStack().pop());
gs.info(gs.getSession().getStack().bottom());Looking at the page in uib there is a relayed event from the component to the page that has a handler with navigation; in the handler there is a property to remove previous url from browser history and setting this as false will stop the behaviour mentioned in your post.
I don't know if you can somehow edit the event payload so that the parameter bound to that property would not be truthy but one workaround is to copy the dashboards page as a variant for everyone and in the variant set that property as false like in the above pic.