Expected
Page should load correctly when the back button is pressed on Chrome.
Actual
Currently facing an isolated case that happens only on Chrome when the back button is pressed for navigation. When inspecting from DevTools, assets such as stimulus controllers and styles are not present.
This happens when
- User clicks a link to a page
- User clicks a link to a page that has
turbo-visit-control="reload"
- User navigates back using the browser's back button.
but works fine when
- User reloads the page or navigate to it by entering the page url in the browser
- User clicks a link to a page that has
turbo-visit-control="reload"
- User navigates back using the browser's back button.
To add, this only happens in our production environment ONLY.
Here is a code snippet from the page before the pressing of the back button
- # app/views/return_policy.html.haml
= content_for :head do
%meta{ name: 'turbo-visit-control', content: 'reload' }