Parcourir la source

getting rid of

shinoka7 il y a 7 ans
Parent
commit
17b2e01d1b
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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);