From f4df1cbd7b4000d624147524681e4643bf1449f0 Mon Sep 17 00:00:00 2001 From: tdro Date: Tue, 16 Jan 2024 18:31:37 -0500 Subject: static/js/pager: Always recalculate :target --- assets/js/index.js | 1 + static/js/pager.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/assets/js/index.js b/assets/js/index.js index 5bbcd1a..4755113 100644 --- a/assets/js/index.js +++ b/assets/js/index.js @@ -20,6 +20,7 @@ const hashed = fragmented && document.body.contains(fragment); if (hashed) { self.location.hash = hash; + self.location.href = hash; if (load) fragment.scrollIntoView(); } return hashed; diff --git a/static/js/pager.ts b/static/js/pager.ts index 6b03270..e93fcca 100644 --- a/static/js/pager.ts +++ b/static/js/pager.ts @@ -24,6 +24,7 @@ const hashed = fragmented && document.body.contains(fragment); if (hashed) { self.location.hash = hash; + self.location.href = hash; if (load) fragment.scrollIntoView(); } return hashed; -- cgit v1.2.3