mirror of
https://github.com/discourse/discourse.git
synced 2025-04-18 08:03:48 +08:00
FIX: Improper routing of https URLs
This commit is contained in:
parent
2ce9d3d733
commit
b6bcfc0426
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user