summaryrefslogtreecommitdiff
path: root/actions.go
diff options
context:
space:
mode:
authortjp <tjp@ctrl-c.club>2024-01-10 11:56:23 -0700
committertjp <tjp@ctrl-c.club>2024-01-10 11:56:23 -0700
commit01e024bc49cc5edefc8223fcc0cf991bb331d564 (patch)
tree2025178247ddb1c5327e7d529acd6900bbe7bcf9 /actions.go
parentcde393cdf50391ccac137a4cc6a9ed231ec3b6d1 (diff)
up action clears other url components
Diffstat (limited to 'actions.go')
-rw-r--r--actions.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/actions.go b/actions.go
index b8b3c87..a3cd1d7 100644
--- a/actions.go
+++ b/actions.go
@@ -400,6 +400,8 @@ func Up(state *BrowserState, conf *Config) error {
}
u.Path = u.Path[:strings.LastIndex(u.Path, "/")+1]
+ u.RawQuery = ""
+ u.Fragment = ""
return Navigate(state, &u, -1, conf)
}