don't accept empty fragments

This commit is contained in:
Bruno Windels 2021-09-14 10:49:24 +02:00
parent 1b6d1de059
commit b32b4b8533
1 changed files with 3 additions and 0 deletions

View File

@ -103,6 +103,9 @@ export class Link {
}
static parseFragment(fragment) {
if (!fragment) {
return null;
}
let [linkStr, queryParamsStr] = fragment.split("?");
if (!linkStr.startsWith("#/")) {
return null;