From f198fc91f07c5717c29a9de01ec4634386807e5d Mon Sep 17 00:00:00 2001 From: potoo <34411681+potoo0@users.noreply.github.com> Date: Thu, 2 May 2024 22:32:11 +0800 Subject: [PATCH] fix: incorrect search results link with `#` (#167 close alist-org/alist#6234) --- src/pages/home/folder/Search.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pages/home/folder/Search.tsx b/src/pages/home/folder/Search.tsx index 8d55dc38b8..b92ff0f9e9 100644 --- a/src/pages/home/folder/Search.tsx +++ b/src/pages/home/folder/Search.tsx @@ -37,6 +37,7 @@ import { getMainColor, me, password } from "~/store" import { SearchNode } from "~/types" import { bus, + encodePath, fsSearch, getFileSize, handleResp, @@ -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) })