FIX: Improper routing of https URLs

This commit is contained in:
Robin Ward 2016-08-22 16:45:11 -04:00
parent 2ce9d3d733
commit b6bcfc0426
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ export default function interceptClick(e) {
(!$currentTarget.hasClass('d-link') && $currentTarget.hasClass('ember-view')) ||
$currentTarget.hasClass('lightbox') ||
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;
}