Problem/Motivation
This ability to link to a vertical tab was introduced in
#376293: Activate current vertical tab from URL fragment →
and has been merged. You currently can use the case-sensitive vertical tab id as the hash, but without knowing how this works users cannot link to specific tabs.
For example if I wanted to link a user to authoring information I would need to know that in Drupal 8 I would need to add #edit-author to the end of the URL. Ideally when authoring information is clicked the window hash should be updated to reflect the tab that is open.
Proposed resolution
When clicking the vertical tab, the URL in the browser should be updated with the relevant hash of the tab. If this URL is entered in to a new browser said tab should be open by default and brought in to the users view.
Before clicking on the vertical tab link switches the tab pane, but does not change the hash in the URL bar:
After clicking on the vertical tab link (including mouse and keydown) switches the tab pane AND changes the hash in the URL bar:
After pasting this URL with the preserved hash into a new window highlights the relevant tab and scrolls down to it:
Remaining tasks
Backport to 8.2.x (Should be the same patch)
Backport to 7.x potentially based on patch #2 which was created for 7.38
User interface changes
Minimal changes. A page with a hashed URL will be scrolled down, and focused on the relevant vertical tab. If the relevant tab is not the default open tab, the default will be closed and the tab from the hash will be opened.
API changes
N/A
Data model changes
N/A