From 9cf915e5f74044b927e88ce6772277b32ae908a7 Mon Sep 17 00:00:00 2001 From: df Date: Mon, 15 Jun 2020 03:31:28 +0000 Subject: [PATCH] Avoid sort order build-up in sort URL parameter string Fixes behaviour where each new sort added &order=n to the query string. --- webif/html/browse/index.jim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/webif/html/browse/index.jim b/webif/html/browse/index.jim index 669831e..a1b60be 100755 --- a/webif/html/browse/index.jim +++ b/webif/html/browse/index.jim @@ -379,7 +379,8 @@ foreach sl $sortlist { set tag " (current)" if {$order != $index} { - puts "" + set qs [regsub -all {&order=[[[:digit:]]+} $env(QUERY_STRING) ""] + puts "" set tag "" } puts " $descr$tag"