Skip to content

Retain current tab hash in URL when switching localization#616

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

Retain current tab hash in URL when switching localization#616
duncanmcclean merged 1 commit into
7.xfrom
retain-hash-when-switching-localization

Conversation

@duncanmcclean

Copy link
Copy Markdown
Member

When you navigate between tabs in the site defaults publish form, the tab handle is used as a URL hash (eg. /edit#json-ld). 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 merged commit 638dbe2 into 7.x Jun 19, 2026
16 checks passed
@duncanmcclean duncanmcclean deleted the retain-hash-when-switching-localization branch June 19, 2026 15:32
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