diff options
Diffstat (limited to 'pkg/config')
-rw-r--r-- | pkg/config/url.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/config/url.go b/pkg/config/url.go index 4b3abf7..a5e9f1f 100644 --- a/pkg/config/url.go +++ b/pkg/config/url.go @@ -174,7 +174,7 @@ func (u *Url) CommonBaseUrl(other Url) bool { func (u *Url) RootPath() []string { path := u.Root - if path[0] == '/' { + if path != "" && path[0] == '/' { path = path[1:] } return strings.Split(path, "/") |