have a separate parse method for identifier so we don't validate the fragment hash

This commit is contained in:
Bruno Windels
2021-09-14 10:44:27 +02:00
parent a460b52e03
commit 41d7308ba8
3 changed files with 15 additions and 13 deletions
+1 -1
View File
@@ -30,7 +30,7 @@ export class CreateLinkViewModel extends ViewModel {
}
async createLink(identifier) {
this._link = Link.parse(identifier);
this._link = Link.parseIdentifier(identifier);
if (this._link) {
this.openLink("#" + this._link.toFragment());
}