aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/html/html.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/html/html.go')
-rw-r--r--pkg/html/html.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/pkg/html/html.go b/pkg/html/html.go
index c89c42fbb..046a35b4c 100644
--- a/pkg/html/html.go
+++ b/pkg/html/html.go
@@ -202,7 +202,11 @@ func AmendURL(baseURL, key, value string) string {
return ""
}
values := parsed.Query()
- values.Set(key, value)
+ if value == "" {
+ values.Del(key)
+ } else {
+ values.Set(key, value)
+ }
parsed.RawQuery = values.Encode()
return parsed.String()
}