diff --git a/docs/index.html b/docs/index.html
index 8d28e8ef..7080fad9 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -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