浏览代码

getting rid of

shinoka7 7 年之前
父节点
当前提交
17b2e01d1b
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/client/js/components/HeaderSearchBox.jsx

+ 1 - 1
src/client/js/components/HeaderSearchBox.jsx

@@ -52,7 +52,7 @@ class HeaderSearchBox extends React.Component {
     // construct search query
     let q = this.state.text;
     if (this.state.isScopeChildren) {
-      q += ` prefix:${decodeURI(window.location.pathname)}`;
+      q += ` prefix:${window.location.pathname}`;
     }
     url.searchParams.append('q', q);