Skip to content

fix hx-browser-indicator history.back()#3839

Draft
jackielii wants to merge 1 commit into
bigskysoftware:four-devfrom
jackielii:fix-hx-browser-indicator
Draft

fix hx-browser-indicator history.back()#3839
jackielii wants to merge 1 commit into
bigskysoftware:four-devfrom
jackielii:fix-hx-browser-indicator

Conversation

@jackielii

@jackielii jackielii commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

hx-browser-indicator's navigation.navigate(location.href, {history:"replace"}) resets the leaving entry's classic History state to null, so htmx's popstate event.state.htmx check fails and #restoreHistory() never runs — after a boosted A→B nav, Back reverts the URL to A but leaves B's content.

@jackielii jackielii changed the base branch from master to four June 12, 2026 19:40
@jackielii jackielii changed the base branch from four to four-dev June 12, 2026 19:40
@jackielii jackielii marked this pull request as ready for review June 12, 2026 19:43
@jackielii jackielii marked this pull request as draft June 12, 2026 19:51
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