Skip to content

Commit

Permalink
Support URL's containing both a hash (#) and query parameters (?).
Browse files Browse the repository at this point in the history
  • Loading branch information
paulhibbitts committed Oct 15, 2024
1 parent 9aa0ee4 commit c501f15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1235,7 +1235,7 @@
let isUrlHasIdQuery = urlQueryParam.has(TARGET_QUERY);

// Handle the case where the 'id' is in the fragment (hash) part
let hashParams = new URLSearchParams(location.hash.slice(2)); // Remove '#/' from the hash
let hashParams = new URLSearchParams(location.hash.split('?')[1]); // Get the query params after `#`
let isHashHasIdQuery = hashParams.has(TARGET_QUERY);

// Check if the URL contains the 'id' query parameter in either search or hash
Expand Down

0 comments on commit c501f15

Please sign in to comment.