octicon-rss(16/)
You've already forked ionic-framework
mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-10 22:44:13 +08:00
fix(angular): accept other url schemas
This commit is contained in:
octicon-git-branch(16/)
octicon-tag(16/)
committed by
Manu MA
gitea-unlock(16/)
parent
276c883493
commit
e8e71838b3
octicon-diff(16/tw-mr-1) 2 changed files with 6 additions and 2 deletions
@@ -32,9 +32,11 @@ export class HrefDelegate {
|
||||
this.navCtrl.setDirection(this.routerDirection);
|
||||
}
|
||||
|
||||
if (!this.routerLink && this.router && url != null && url[0] !== '#' && url.indexOf('://') === -1) {
|
||||
if (!this.routerLink && this.router && url != null && url[0] !== '#' && !SCHEME.test(url)) {
|
||||
ev.preventDefault();
|
||||
this.router.navigateByUrl(url);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
const SCHEME = /^[a-z][a-z0-9+\-.]*:/;
|
||||
|
||||
Reference in New Issue
Block a user