Skip to content

Conversation

kohkimakimoto
Copy link

Description

This PR fixes an issue where HX-Location and HX-Redirect headers were not being processed during history restoration when users navigate using the browser's back button. This causes problems if your application has authentication pages and controls invalid access using redirects.

Corresponding issue: #3432

Testing

I used updated code for my work which is not open source. I created a login form with htmx and checked the browser's back button behavior manually.

Checklist

  • I have read the contribution guidelines
  • I have targeted this PR against the correct branch (master for website changes, dev for
    source changes)
  • This is either a bugfix, a documentation update, or a new feature that has been explicitly
    approved via an issue
  • I ran the test suite locally (npm run test) and verified that it succeeded

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant