aboutsummaryrefslogtreecommitdiff
path: root/static
diff options
context:
space:
mode:
authortdro <tdro@noreply.example.com>2024-01-16 18:31:37 -0500
committertdro <tdro@noreply.example.com>2024-01-16 18:31:37 -0500
commitf4df1cbd7b4000d624147524681e4643bf1449f0 (patch)
tree88ef423d2ca0792896151184a1cf0530641f20d6 /static
parent35b7ed6526968129b1a2cc1d73211ec1dc9729ec (diff)
downloadcanory-f4df1cbd7b4000d624147524681e4643bf1449f0.tar.gz
canory-f4df1cbd7b4000d624147524681e4643bf1449f0.tar.bz2
canory-f4df1cbd7b4000d624147524681e4643bf1449f0.zip
static/js/pager: Always recalculate :target
Diffstat (limited to 'static')
-rw-r--r--static/js/pager.ts1
1 files changed, 1 insertions, 0 deletions
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;