Correctly navigate to channel URL
This commit is contained in:
parent
7f00a01c2b
commit
9d51cee72c
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue