From b6bcfc0426f123e159935b079969216b76e1eccc Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Mon, 22 Aug 2016 16:45:11 -0400 Subject: [PATCH] FIX: Improper routing of https URLs --- app/assets/javascripts/discourse/lib/intercept-click.js.es6 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/lib/intercept-click.js.es6 b/app/assets/javascripts/discourse/lib/intercept-click.js.es6 index 09367beca23..6bedce5861d 100644 --- a/app/assets/javascripts/discourse/lib/intercept-click.js.es6 +++ b/app/assets/javascripts/discourse/lib/intercept-click.js.es6 @@ -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; }