diff --git a/frontend/src/api/search.js b/frontend/src/api/search.js index 9dfaf8ee..ecbc9b04 100644 --- a/frontend/src/api/search.js +++ b/frontend/src/api/search.js @@ -16,6 +16,11 @@ export default async function search (base, query) { data = data.map((item) => { item.url = `/files${base}` + url.encodePath(item.path) + + if (item.dir) { + item.url += '/' + } + return item })