All Apps and Add-ons

Why simple XML form breaks browser "back page" functionality?


I have a Simple XML form with three input elements. The relevant code reads:

   <fieldset autoRun="false">
      <input type="time" searchWhenChanged="true">
         <label>Time range:</label>
      <input type="text" token="FilterString">
      <input type="text" token="HostFilter">

When I access the form's through its regular URL:


the URL is immediately replaced with:


Obviously the form's tokens are mapped into HTTP GET parameters stored in the URL. However, that more or less breaks the browser's back (to last page) functionality. Clicking back once changes the URL to:


Clicking back a second time changes the URL to the original value without HTTP GET parameters:


Only when I click back a third time I get the URL of the page I had visited before the current dashboard.

This is pretty bad from a user experience point of view. Is this a bug?

More information: I have observed this with Splunk 6.1.3. It seems to be caused by the parameter searchWhenChanged="true" of the input type="time". But I need that: when I set searchWhenChanged to false that dashboard's searches do not run until I manually click Submit. My current Advanced XML dashboards to not exhibit this problem.

Splunk Employee
Splunk Employee

The intention of the back button in the current UI is to go to the previous state. For example when running a series of searches, clicking back goes to the prior search. This means that:

  1. the urls in the UI should match the current state and be mostly sharable.
  2. A user trying many things should be able to go back to something they were doing recently.
  3. Clicking back will not always go to a previous view right away.

It's quite possible that there are warts in the functionality which should be duly logged, triaged, and so on, but simple capacity for the back button to not leave the view is by design. It's pretty essential for some views to behave pleasantly.

However what I think you're saying is that simply navigating to a page without interacting with it leads to a series of url updates which cause the back button to not perform as a user would expect. If true, I don't know if it's a design flaw, a silly design, or a bug, but it's worth raising with technical support, IMO.

Splunk Employee
Splunk Employee

Doesn't the search page, and indeed most pages in Splunk Web, do this as well?

0 Karma


Posting a comment because for some reason I cannot edit my question. The problem affects the app "Splunk 6.x Dashboard Examples", too. It is nearly impossible to go back from the dashboard "simple_xml_examples/simple_form_advanced".

0 Karma
Get Updates on the Splunk Community!

Splunk Observability Cloud | Unified Identity - Now Available for Existing Splunk ...

Raise your hand if you’ve already forgotten your username or password when logging into an account. (We can’t ...

Index This | How many sides does a circle have?

February 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

Registration for Splunk University is Now Open!

Are you ready for an adventure in learning?   Brace yourselves because Splunk University is back, and it's ...