diff --git a/src/Link.js b/src/Link.js index 079d7be..53459ae 100644 --- a/src/Link.js +++ b/src/Link.js @@ -105,9 +105,10 @@ export class Link { webInstances = getWebInstanceMap(queryParams); } - if (linkStr.startsWith("#/")) { - linkStr = linkStr.substr(2); + if (!linkStr.startsWith("#/")) { + return null; } + linkStr = linkStr.substr(2); const [identifier, eventId] = linkStr.split("/");