File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -80,9 +80,13 @@ async function fetchRepoData() {
8080
8181// Parse hash to get view state
8282function parseHash ( ) {
83- const hash = window . location . hash . slice ( 1 ) ;
83+ let hash = window . location . hash . slice ( 1 ) ;
8484 console . log ( 'Parsing hash:' , hash ) ;
8585
86+ // Decode the entire hash first to handle encoded slashes
87+ hash = decodeURIComponent ( hash ) ;
88+ console . log ( 'Decoded hash:' , hash ) ;
89+
8690 if ( ! hash ) {
8791 return { view : 'platforms' , platform : null , problem : null } ;
8892 }
@@ -96,7 +100,7 @@ function parseHash() {
96100 }
97101
98102 const platform = remainder . slice ( 0 , slashIndex ) ;
99- const problemName = decodeURIComponent ( remainder . slice ( slashIndex + 1 ) ) ;
103+ const problemName = remainder . slice ( slashIndex + 1 ) ;
100104
101105 console . log ( 'Parsed view - platform:' , platform , 'problem:' , problemName ) ;
102106
You can’t perform that action at this time.
0 commit comments