From 9177b993fced916afdd19dda0856074a212c6cd8 Mon Sep 17 00:00:00 2001 From: Kibi Kelburton Date: Sat, 30 May 2026 12:55:22 +0200 Subject: [PATCH] jhgf --- public/s/js/scroller.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/public/s/js/scroller.js b/public/s/js/scroller.js index 04bec5b..56d40cc 100644 --- a/public/s/js/scroller.js +++ b/public/s/js/scroller.js @@ -236,7 +236,8 @@ } function hashId() { // Check path first /abyss/1234 or /abyss/gif/1234 - const pathMatch = location.pathname.match(/\/abyss\/([a-zA-Z0-9_\/-]+)$/); + const pathClean = location.pathname.replace(/\/$/, ''); + const pathMatch = pathClean.match(/\/abyss\/([a-zA-Z0-9_\/-]+)$/); if (pathMatch) return pathMatch[1]; // Fallback to hash @@ -1379,18 +1380,15 @@ ${window.scrollerLoggedIn ? ` ` : ''} ${window.scrollerLoggedIn ? ` ` : ''}