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 ? `
` : ''}