summaryrefslogtreecommitdiff
path: root/actions.go
diff options
context:
space:
mode:
Diffstat (limited to 'actions.go')
-rw-r--r--actions.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/actions.go b/actions.go
index f95825a..5aa054a 100644
--- a/actions.go
+++ b/actions.go
@@ -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 {