Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use explicit class instead of :target #339

Merged
merged 1 commit into from
Oct 21, 2023

Conversation

jonathanhefner
Copy link
Member

Turbo Drive breaks the browser's back / forward buttons when navigating to a history entry that was not added by Turbo Drive. (The URL in the address bar changes, but the page itself does not.) Therefore, this commit abandons working around Turbo Drive to fix :target behavior, and adds an explicit .target class in response to navigation events instead.

Turbo Drive breaks the browser's back / forward buttons when navigating
to a history entry that was not added by Turbo Drive.  (The URL in the
address bar changes, but the page itself does not.)  Therefore, this
commit abandons working around Turbo Drive to fix `:target` behavior,
and adds an explicit `.target` class in response to navigation events
instead.
@jonathanhefner jonathanhefner merged commit 81c82e0 into rails:main Oct 21, 2023
8 checks passed
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