File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
src/core/plugins/deep-linking Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -173,12 +173,13 @@ export default {
173173 return state . get ( "scrollToKey" )
174174 } ,
175175 isShownKeyFromUrlHashArray ( state , urlHashArray ) {
176+ let normalizedUrlSegments = urlHashArray . slice ( )
176177 // 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 ) ]
178+ if ( normalizedUrlSegments . length > 2 ) {
179+ normalizedUrlSegments = [ normalizedUrlSegments . slice ( 0 , 1 ) . join ( "/" ) , normalizedUrlSegments . at ( - 1 ) ]
179180 }
180181
181- const [ tag , operationId ] = urlHashArray
182+ const [ tag , operationId ] = normalizedUrlSegments
182183 // We only put operations in the URL
183184 if ( operationId ) {
184185 return [ "operations" , tag , operationId ]
You can’t perform that action at this time.
0 commit comments