From 53a44a29f3ed0008a327637fec69a4c6e319cec3 Mon Sep 17 00:00:00 2001 From: vagusX Date: Wed, 16 Jun 2021 20:32:03 +0800 Subject: [PATCH] fix: reload when press enter in hit items tmp (#31003) --- site/theme/template/Layout/Header/SearchBar.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/site/theme/template/Layout/Header/SearchBar.tsx b/site/theme/template/Layout/Header/SearchBar.tsx index 195ca28fe5..9861d56e64 100644 --- a/site/theme/template/Layout/Header/SearchBar.tsx +++ b/site/theme/template/Layout/Header/SearchBar.tsx @@ -115,6 +115,8 @@ export const SearchBar = ({ const navigator = React.useRef({ navigate({ itemUrl }: { itemUrl: string }) { browserHistory.push(itemUrl); + // should use history from bisheng and remove this `reload` calls + window.location.reload(false); }, }).current;