summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSashi202024-03-28 13:28:02 +0530
committerGitHub2024-03-28 13:28:02 +0530
commitc7cebd4e8851859c4d54817ac080a6a730db9eb7 (patch)
tree6884c8f74d3de0cd351918e9b6be7eefd57d1cec
parent339ff0617773708bea4f63dbafc6dd1836fc2f82 (diff)
parentbedbea036dcbd916a83642eb7b57a9756a62249e (diff)
downloadanimate-2024-c7cebd4e8851859c4d54817ac080a6a730db9eb7.tar.gz
animate-2024-c7cebd4e8851859c4d54817ac080a6a730db9eb7.tar.bz2
animate-2024-c7cebd4e8851859c4d54817ac080a6a730db9eb7.zip
Merge pull request #15 from Sashi20/main
Update locationpathname in js
-rw-r--r--src/layouts/layout.astro2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/layouts/layout.astro b/src/layouts/layout.astro
index 74246ac..5d9fac8 100644
--- a/src/layouts/layout.astro
+++ b/src/layouts/layout.astro
@@ -173,7 +173,7 @@ ul.menu li a.active{
document.addEventListener('astro:page-load', () => {
if(window.location.hash){
-var currentUrl = window.location.pathname + window.location.hash.replace(/\/+$/, '');
+var currentUrl = window.location.pathname.replace(/\/+$/, '') + window.location.hash.replace(/\/+$/, '');
}
else{