potential fix for comma seperated tag view randoming
This commit is contained in:
@@ -324,10 +324,10 @@ window.requestAnimFrame = (function () {
|
|||||||
let pushUrl = `/${itemid}`;
|
let pushUrl = `/${itemid}`;
|
||||||
// Logic from ajax.mjs context reconstruction:
|
// Logic from ajax.mjs context reconstruction:
|
||||||
if (user) {
|
if (user) {
|
||||||
pushUrl = `/user/${user}/${itemid}`;
|
pushUrl = `/user/${encodeURIComponent(user)}/${itemid}`;
|
||||||
if (isFavs) pushUrl = `/user/${user}/favs/${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"
|
// We overwrite proper URL even if the link clicked was "naked"
|
||||||
history.pushState({}, '', pushUrl);
|
history.pushState({}, '', pushUrl);
|
||||||
|
|||||||
Reference in New Issue
Block a user