Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Title says it all. We only do history.pushState()
, which is not enough.
See https://developer.mozilla.org/en-US/docs/Web/API/History_API.
Comment | File | Size | Author |
---|---|---|---|
#6 | back_forward-2692299-6.patch | 10.84 KB | Wim Leers |
Comments
Comment #2
Wim LeersComment #3
Wim LeersComment #4
Wim LeersInitial version.
Comment #5
anavarrePatch applied successfully. Didn't notice any issue with the back button now.
Comment #6
Wim LeersThe back button was indeed working, but
drupalSettings
was not yet being updated, and particularly notdrupalSetting.path.currentPath
.This fixes that, and does a bunch of refactoring to:
sessionStorage
Comment #7
Wim LeersBetter title
Comment #9
Wim Leers