diff --git a/ui/page/search/view.jsx b/ui/page/search/view.jsx index 86f5f7f57..9dbf3c854 100644 --- a/ui/page/search/view.jsx +++ b/ui/page/search/view.jsx @@ -50,10 +50,10 @@ export default function SearchPage(props: Props) { } const INVALID_URI_CHARS = new RegExp(regexInvalidURI, 'gu'); - let path; + let path, streamName; let isValid = true; try { - let { streamName } = parseURI(urlQuery.replace(/ /g, '-').replace(/:/g, '#')); + ({ path, streamName } = parseURI(urlQuery.replace(/ /g, '-').replace(/:/g, '#'))); if (!isNameValid(streamName)) { isValid = false; }