Built-in handling of the back button
3150
Views
6
Comments
Implemented
Frontend (App Interfaces)
Platform Server Release Oct.2019 CP1

As it is, the browser back button produces some pretty serious issues with the platform. Outsystems pages can rely heavily on their preparations, and preparations don't run with the back button which can lead to outdated displays.

This could lead to a variety of issues, from wasted time using misleading data, all the way to potentially exposing sensitive data through the back stack.


There are ways to force-refresh pages using javascript, but as a low-code platform we aim to minimize the amount of custom javascript in a solution. 

The addition of built-in handling to force (or choose to force) pages to refresh with the back button would be a very desirable change.

2014-02-07 17-02-43
Vasco Pessanha
Changed the category to
Frontend
Changed the status to
Working on it
expected delivery in Q4 2019

Hi MichaelR,

That is a great idea. In fact we are currently working on the next generation of web applications, where that problem should be already handled for you. You'll have more news about it soon.


Cheers,
Tiago Simões

I have a component in the forge that can help.

https://www.outsystems.com/forge/component-overview/2186/timer

There is a webblock in there called "Back Refresh" which will force a page refresh if you navigate to it using the back button. It's just a wrapper around simple javascript.

Changed the status to
Implemented
on 02 Oct 2018

Hi MichaelR,

We've recently released reactive web applications, a new generation of web apps, that has a completely different way of handling navigation. When navigating back, the requests to the server to get data are all done again and the page is refreshed if needed. You can read more about reactive web apps in this forum post.

Cheers,
Tiago Simões 

Reactive is not a solution to this issue because Reactive does not support SEO-friendly URLs which is vital to running a successful web page. With Reactive being out of the question for most business applications, when should we expect fix for this problem?

To handle browser back do we need to replace existing web applications to Reactive? If this is the case this can not be marked as implemented as requirement is for web applications.