Skip to content

Commit 83a8972

Browse files
committed
fix: tag extraction when multiple slashes are present
1 parent 3d40e62 commit 83a8972

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/core/plugins/deep-linking/layout.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,11 @@ export default {
173173
return state.get("scrollToKey")
174174
},
175175
isShownKeyFromUrlHashArray(state, urlHashArray) {
176+
// If there are more than 2 segments, treat all segments except the last one as the tag
177+
if (urlHashArray.length > 2) {
178+
urlHashArray = [urlHashArray.slice(0, 1).join('/'), urlHashArray.at(-1)]
179+
}
180+
176181
const [tag, operationId] = urlHashArray
177182
// We only put operations in the URL
178183
if(operationId) {

0 commit comments

Comments
 (0)