Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

End users sometimes press the back button of the browser when trying to get back to the previous page in the flow. This does not work, as the URL never changes when navigating between pages in your flow. The result is that the end user either gets an error, or returns to a completely different page. Therefore, it would be good to disable the back button of the browser. This article describes several possible solutions.

Option 1:

...

Default behavior

XSLT

The exposed page is always index.html. This page can redirect all the traffic server side. Because each page is index.html, it is not possible to have a history. Going back to a previous version of index.html does a call that is being redirected to the current page.

MVC

The MVC does not submit a page as the XLTS does, and does not built up a browser history. Therefore, pressing the back button will navigate to the last page before arriving at the runtime. This could be the landing page of a portal.

Option 2: Creating an alert

...

By using javascript, a hidden button on the page can be clicked. This button then is modeled in studio, but needs to be marked with a presentationStylepresentation style, to be recognizable as this hidden button that corresponds to the navigation.

...

Please be aware that you start flowing from this invisible button. This means that there is no automatic 'back' behavior. You theoretically move forward when pressing the back button. In linear flows this invisible back could simply connect to the previous page. In more complex flows, you may need to create a history of visited pages in order to navigate back to the correct previous page. On dashboards with AQ_Dashboard_FlowWidgets on them, we advice to place this button on the main page of the dashboard, so that you go to the previously visited dashboard.

Option 4: Running in a portal

When login in a portal, you arrive at a launch page. From there you start a flow as part of a portal widget. When navigating to the second page of this flow and pressing the back button you will arrive back at the launch page. When starting the same flow, the second page of the flow will still be open.

 

UI Expand
titleRelated articles

Content by Label
showLabelsfalse
max5
spacesBKB
showSpacefalse
sortmodified
reversetrue
typepage
cqllabel in ("browser","back") and type = "page" and space = "BKB"
labelsbrowser back

...