Skip to content

Commit

Permalink
fix: search missing path slash
Browse files Browse the repository at this point in the history
  • Loading branch information
ramiresviana committed Oct 19, 2020
1 parent 5e27ba5 commit 2bd163d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions frontend/src/api/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
})

Expand Down

0 comments on commit 2bd163d

Please sign in to comment.