turbolinks / turbolinks-classic

Classic version of Turbolinks. Now deprecated in favor of Turbolinks 5.
MIT License
3.54k stars 428 forks source link

Clicking browser back button from an error page to a non-error page, retains the styles of the error page #676

Open rsukale opened 7 years ago

rsukale commented 7 years ago

Here's the scenario

/page-valid (valid route in the app) /page-invalid (this route does not exist)

if /page-valid has a link to /page-invalid, and the user clicks on it, we get the standard rails error page as expected, with all the red colors.

Now if the user presses the back button to go back to /page-valid, the styles from the error page are retained.