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.

Preventing Navigation History Entries for iFrames

JosephW1
Tera Guru

Hello,

 

I have an iframe on a custom UI page that contains an src that points to a table in list view. My issue is that this iframe's list view page is landing in the user's navigation history, which I do not want.

 

How do I keep the target page (src) of the iframe from becoming a navigation history entry, please? (Is there already a list-view hyperlink sysparm or iframe attribute for this?)

 

Thanks!

2 REPLIES 2

Maik Skoddow
Tera Patron
Tera Patron

Hi

I don't know whether there is a direct solution for that edge case. But you could implement a Business Rule on table sys_ui_navigator_history which prevents storing that special URL

Maik

Is this an edge case? I felt like this wouldn't be a terribly rare ask for UI pages that show other pages in iframes; point the history to the parent frame rather than all of the children frames.