You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docusaurus-search-local/src/client/theme/SearchBar/SearchBar.tsx
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -182,13 +182,15 @@ export default function SearchBar({
182
182
}
183
183
consta=document.createElement("a");
184
184
constparams=newURLSearchParams();
185
-
params.set("q",encodeURIComponent(query));
185
+
params.set("q",query);
186
186
if(Array.isArray(searchContextByPaths)){
187
187
params.set("ctx",searchContext);
188
188
}
189
189
if(versionUrl!==baseUrl){
190
190
if(!versionUrl.startsWith(baseUrl)){
191
-
thrownewError(`Version url '${versionUrl}' does not start with base url '${baseUrl}', this is a bug of \`@easyops-cn/docusaurus-search-local\`, please report it.`);
191
+
thrownewError(
192
+
`Version url '${versionUrl}' does not start with base url '${baseUrl}', this is a bug of \`@easyops-cn/docusaurus-search-local\`, please report it.`
0 commit comments