From c501f15e1e8974c6277f63aa942d39b163b29c4c Mon Sep 17 00:00:00 2001 From: Paul Hibbitts Date: Tue, 15 Oct 2024 09:05:08 -0700 Subject: [PATCH] Support URL's containing both a hash (#) and query parameters (?). --- docs/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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