diff options
| -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 { |
