Skip to content

Commit

Permalink
Merge pull request #74 from hibbitts-design/docsify-this-v1
Browse files Browse the repository at this point in the history
Support URL's containing both a hash (#) and query parameters (?).
  • Loading branch information
paulhibbitts authored Oct 15, 2024
2 parents eebcfc0 + c501f15 commit 410c928
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 410c928

Please sign in to comment.