From fd95d53702e5ba4a42819803a2de7bbae01c8596 Mon Sep 17 00:00:00 2001 From: Captain ALM Date: Sat, 30 Jul 2022 21:07:22 +0100 Subject: [PATCH] Fix sorting URL setter. --- index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index f5c35e6..10e2b2f 100644 --- a/index.js +++ b/index.js @@ -241,7 +241,8 @@ function EntrySort(o, s) { } if (chg) { 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")) { ReplaceHistory(url+"?light&"+TheParameters) } else {