FIX: Improper routing of https URLs
This commit is contained in:
parent
2ce9d3d733
commit
b6bcfc0426
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ export default function interceptClick(e) {
|
||||||
(!$currentTarget.hasClass('d-link') && $currentTarget.hasClass('ember-view')) ||
|
(!$currentTarget.hasClass('d-link') && $currentTarget.hasClass('ember-view')) ||
|
||||||
$currentTarget.hasClass('lightbox') ||
|
$currentTarget.hasClass('lightbox') ||
|
||||||
href.indexOf("mailto:") === 0 ||
|
href.indexOf("mailto:") === 0 ||
|
||||||
(href.match(/^http[s]?:\/\//i) && !href.match(new RegExp("^http:\\/\\/" + window.location.hostname, "i")))) {
|
(href.match(/^http[s]?:\/\//i) && !href.match(new RegExp("^https?:\\/\\/" + window.location.hostname, "i")))) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in a new issue