From 446e9149bdd643cb644d1859cf5921cd1fc8a11b Mon Sep 17 00:00:00 2001 From: x Date: Sat, 24 Jan 2026 10:22:22 +0100 Subject: [PATCH] potential fix for comma seperated tag view randoming --- public/s/js/f0ck.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/public/s/js/f0ck.js b/public/s/js/f0ck.js index ecb2402..493adb8 100644 --- a/public/s/js/f0ck.js +++ b/public/s/js/f0ck.js @@ -324,10 +324,10 @@ window.requestAnimFrame = (function () { let pushUrl = `/${itemid}`; // Logic from ajax.mjs context reconstruction: if (user) { - pushUrl = `/user/${user}/${itemid}`; - if (isFavs) pushUrl = `/user/${user}/favs/${itemid}`; + pushUrl = `/user/${encodeURIComponent(user)}/${itemid}`; + if (isFavs) pushUrl = `/user/${encodeURIComponent(user)}/favs/${itemid}`; } - else if (tag) pushUrl = `/tag/${tag}/${itemid}`; + else if (tag) pushUrl = `/tag/${encodeURIComponent(tag)}/${itemid}`; // We overwrite proper URL even if the link clicked was "naked" history.pushState({}, '', pushUrl);