Skip to content

Commit

Permalink
fix: incorrect search results link with # (#167 close AlistGo/alist…
Browse files Browse the repository at this point in the history
  • Loading branch information
potoo0 authored May 2, 2024
1 parent 2bdfd30 commit f198fc9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pages/home/folder/Search.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ import { getMainColor, me, password } from "~/store"
import { SearchNode } from "~/types"
import {
bus,
encodePath,
fsSearch,
getFileSize,
handleResp,
Expand Down Expand Up @@ -236,7 +237,7 @@ const Search = () => {
node.parent = "/" + node.parent
}
}
node.path = pathJoin(node.parent, node.name)
node.path = encodePath(pathJoin(node.parent, node.name))
})
setData(data)
})
Expand Down

0 comments on commit f198fc9

Please sign in to comment.