don't accept empty fragments
This commit is contained in:
parent
1b6d1de059
commit
b32b4b8533
1 changed files with 3 additions and 0 deletions
|
@ -103,6 +103,9 @@ export class Link {
|
|||
}
|
||||
|
||||
static parseFragment(fragment) {
|
||||
if (!fragment) {
|
||||
return null;
|
||||
}
|
||||
let [linkStr, queryParamsStr] = fragment.split("?");
|
||||
if (!linkStr.startsWith("#/")) {
|
||||
return null;
|
||||
|
|
Loading…
Reference in a new issue