Skip to content

Fix historyPoppedWithEmptyState on data-turbo=false pages (fixes #1496)#1519

Open
Danish-Belal wants to merge 1 commit intohotwired:mainfrom
Danish-Belal:fix-historyPoppedWithEmptyState-data-turbo-false-1496
Open

Fix historyPoppedWithEmptyState on data-turbo=false pages (fixes #1496)#1519
Danish-Belal wants to merge 1 commit intohotwired:mainfrom
Danish-Belal:fix-historyPoppedWithEmptyState-data-turbo-false-1496

Conversation

@Danish-Belal
Copy link
Copy Markdown

Don't inject Turbo state into history entries when the page has data-turbo="false" on body or html. This prevents restore visits on subsequent back/forward navigation for hash-based routing.

…ired#1496)

Don't inject Turbo state into history entries when the page has
data-turbo="false" on body or html. This prevents restore visits
on subsequent back/forward navigation for hash-based routing.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant