export baseURL again -_-

Former-commit-id: ab9cf62450
This commit is contained in:
Henrique Dias committed 2017-06-25 15:49:24 +01:00
1 parent 224151e814
commit 713e564a6e
7 files changed
+23 -21

No files matched your search

+1 -1
View File
@@ -71,7 +71,7 @@ func search(w http.ResponseWriter, r *http.Request, c *FileManager, u *User) (in
}
search = parseSearch(value)
scope := strings.Replace(r.URL.Path, c.baseURL, "", 1)
scope := strings.Replace(r.URL.Path, c.BaseURL, "", 1)
scope = strings.TrimPrefix(scope, "/")
scope = "/" + scope
scope = u.scope + scope