diff options
| author | T <t@tjp.lol> | 2025-04-03 10:24:19 -0600 |
|---|---|---|
| committer | T <t@tjp.lol> | 2025-04-03 10:25:50 -0600 |
| commit | be97b7a594163192edf47706baf75d5d42bcb68f (patch) | |
| tree | 82bf5a256f6e2b5ac0fa37d15b62d119e84934f3 /actions.go | |
| parent | 82472efd501004d1dfb18240cf89534a24b64871 (diff) | |
fix gopher empty path handling
Diffstat (limited to 'actions.go')
| -rw-r--r-- | actions.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -122,13 +122,13 @@ func purgeOldHistory(state *BrowserState) { } func gopherURL(u *url.URL) (string, sliderule.Status) { - if u.Scheme != "gopher" || !strings.HasPrefix(u.Path, "/") { + if u.Scheme != "gopher" { return u.String(), 0 } var itemType byte var path string - if u.Path == "/" { + if u.Path == "" || u.Path == "/" { itemType = '1' path = u.Path } else { |
