Skip to content

[6.x] Retain current tab hash in URL when switching localization#14846

Merged
jasonvarga merged 1 commit into
6.xfrom
retain-hash-when-switching-localization
Jun 19, 2026
Merged

[6.x] Retain current tab hash in URL when switching localization#14846
jasonvarga merged 1 commit into
6.xfrom
retain-hash-when-switching-localization

Conversation

@duncanmcclean

@duncanmcclean duncanmcclean commented Jun 19, 2026

Copy link
Copy Markdown
Member

When you navigate between tabs in a publish form, the tab handle is used as a URL hash (eg. /edit#seo). This means you'll stay on the same tab if you refresh the page.

However, if you switch localization, the hash disappears and you end up with just the site query parameter. Refreshing the page will take you back to the first tab.

This PR ensures the hash is retained when switching localizations.

@duncanmcclean duncanmcclean marked this pull request as ready for review June 19, 2026 14:24
@jasonvarga jasonvarga merged commit 5569208 into 6.x Jun 19, 2026
23 checks passed
@jasonvarga jasonvarga deleted the retain-hash-when-switching-localization branch June 19, 2026 15:19
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.

2 participants