don't accept empty fragments
This commit is contained in:
@@ -103,6 +103,9 @@ export class Link {
|
||||
}
|
||||
|
||||
static parseFragment(fragment) {
|
||||
if (!fragment) {
|
||||
return null;
|
||||
}
|
||||
let [linkStr, queryParamsStr] = fragment.split("?");
|
||||
if (!linkStr.startsWith("#/")) {
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user