You've already forked filebrowser
mirror of
https://github.com/filebrowser/filebrowser.git
synced 2025-11-26 14:25:26 +08:00
fix directories in search results can not be opened by click (#583)
This commit is contained in:
@@ -329,6 +329,9 @@ func search(c *fb.Context, w http.ResponseWriter, r *http.Request) (int, error)
|
||||
return nil
|
||||
}
|
||||
}
|
||||
if f.IsDir() {
|
||||
originalPath = originalPath + "/"
|
||||
}
|
||||
|
||||
response, _ := json.Marshal(map[string]interface{}{
|
||||
"dir": f.IsDir(),
|
||||
|
||||
Reference in New Issue
Block a user