Clicking the browser back button triggers overlay

Created on 15 June 2018, over 7 years ago
Updated 18 August 2025, 3 months ago

We are using this module along with the other Commerce modules and basically it works as expected.

Except when the follow actions occur:

Using Chrome on Mac or PC (W10)
Using Firefox on PC (W10)

User selects product and clicks Add to Cart link
Overlay opens indicating the product has been added to the cart (this is expected and correct)
User clicks on Go to Cart link in overlay
Cart page is displayed as expected
User clicks on back button in browser
User is directed back to previous page (product they previously added) but the cart overlay is open. This is unexpected.

I have added this JS to force a page reload: https://codepen.io/derekjp/pen/Bguwz

Any suggestions, thoughts, ideas? Is anyone else having this issue?

πŸ› Bug report
Status

Closed: outdated

Component

Miscellaneous

Created by

πŸ‡ΊπŸ‡ΈUnited States thalemn

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024