diff --git a/ui/page/search/view.jsx b/ui/page/search/view.jsx index 658e9bd90..b5728a2b2 100644 --- a/ui/page/search/view.jsx +++ b/ui/page/search/view.jsx @@ -27,7 +27,7 @@ export default function SearchPage(props: Props) { let modifiedUrlQuery = urlQuery ? urlQuery .trim() - .replace(/\s+/, '-') + .replace(/\s+/g, '-') .replace(INVALID_URI_CHARS, '') : ''; const isModifiedUriValid = isURIValid(modifiedUrlQuery);