diff --git a/pkg/app/resource.go b/pkg/app/resource.go index 4c62476e..3ecf683d 100644 --- a/pkg/app/resource.go +++ b/pkg/app/resource.go @@ -96,7 +96,10 @@ func GitHubPages(repoName string) ResourceProvider { // given prefix. func CustomProvider(path, prefix string) ResourceProvider { root := strings.Trim(path, "/") - prefix = "/" + strings.Trim(prefix, "/") + + if prefix != "" { + prefix = "/" + strings.Trim(prefix, "/") + } return localDir{ Handler: http.FileServer(http.Dir(root)),