potential fix for comma seperated tag view randoming
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user