Fix sorting URL setter.
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Captain ALM 2022-07-30 21:07:22 +01:00
parent 4c180c0966
commit fd95d53702
Signed by: alfred
GPG Key ID: 4E4ADD02609997B1

View File

@ -241,7 +241,8 @@ function EntrySort(o, s) {
} }
if (chg) { if (chg) {
TheParameters = "order="+OrderValue+"&sort="+SortValue TheParameters = "order="+OrderValue+"&sort="+SortValue
var url = url.split("#", 1)[0].split('?', 1)[0] var url = document.location.href
url = url.split("#", 1)[0].split('?', 1)[0]
if (document.getElementById("so-theme")) { if (document.getElementById("so-theme")) {
ReplaceHistory(url+"?light&"+TheParameters) ReplaceHistory(url+"?light&"+TheParameters)
} else { } else {