mirror of
https://github.com/filebrowser/filebrowser.git
synced 2026-01-23 02:35:10 +00:00
fix: fix static assets url generation (#965)
This commit is contained in:
parent
6e5405eeed
commit
ba47e3b2fe
5 changed files with 13 additions and 13 deletions
|
|
@ -43,7 +43,7 @@ func errToStatus(err error) int {
|
|||
// This is an addaptation if http.StripPrefix in which we don't
|
||||
// return 404 if the page doesn't have the needed prefix.
|
||||
func stripPrefix(prefix string, h http.Handler) http.Handler {
|
||||
if prefix == "" {
|
||||
if prefix == "" || prefix == "/" {
|
||||
return h
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue