fix directories in search results can not be opened by click (#583)
parent
c01ebf33ef
commit
ea3576da7e
|
@ -329,6 +329,9 @@ func search(c *fb.Context, w http.ResponseWriter, r *http.Request) (int, error)
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if f.IsDir() {
|
||||||
|
originalPath = originalPath + "/"
|
||||||
|
}
|
||||||
|
|
||||||
response, _ := json.Marshal(map[string]interface{}{
|
response, _ := json.Marshal(map[string]interface{}{
|
||||||
"dir": f.IsDir(),
|
"dir": f.IsDir(),
|
||||||
|
|
Loading…
Reference in New Issue