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');
|
const INVALID_URI_CHARS = new RegExp(regexInvalidURI, 'gu');
|
||||||
let path;
|
let path, streamName;
|
||||||
let isValid = true;
|
let isValid = true;
|
||||||
try {
|
try {
|
||||||
let { streamName } = parseURI(urlQuery.replace(/ /g, '-').replace(/:/g, '#'));
|
({ path, streamName } = parseURI(urlQuery.replace(/ /g, '-').replace(/:/g, '#')));
|
||||||
if (!isNameValid(streamName)) {
|
if (!isNameValid(streamName)) {
|
||||||
isValid = false;
|
isValid = false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue