fixed bug in hash view URL calling

This commit is contained in:
Keep Creating Online
2025-02-06 16:11:16 -05:00
parent 7e661ba0fd
commit 46d1170a52
2 changed files with 14 additions and 2 deletions

View File

@@ -305,6 +305,7 @@ function handleQueryParams() {
* Handle #view=... in the hash and load the correct partial view.
*/
function handleHashChange() {
console.log("handleHashChange called, current hash =", window.location.hash);
const hash = window.location.hash || "";
// Expecting something like #view=most-recent-videos
const match = hash.match(/^#view=(.+)/);