potential fix for comma seperated tag view randoming

This commit is contained in:
x
2026-01-24 10:22:22 +01:00
parent f488559e2e
commit 446e9149bd

View File

@@ -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);