FIX: We can route from user cards

This commit is contained in:
Robin Ward 2016-12-05 13:45:31 -05:00
parent 424fc8e2e2
commit 9e807896bc
1 changed files with 3 additions and 2 deletions

View File

@ -21,10 +21,11 @@ export default function interceptClick(e) {
$currentTarget.data('ember-action') ||
$currentTarget.data('auto-route') ||
$currentTarget.data('share-url') ||
$currentTarget.data('user-card') ||
$currentTarget.hasClass('widget-link') ||
$currentTarget.hasClass('mention') ||
(!$currentTarget.hasClass('d-link') && $currentTarget.hasClass('ember-view')) ||
(!$currentTarget.hasClass('d-link') &&
!$currentTarget.data('user-card') &&
$currentTarget.hasClass('ember-view')) ||
$currentTarget.hasClass('lightbox') ||
href.indexOf("mailto:") === 0 ||
(href.match(/^http[s]?:\/\//i) && !href.match(new RegExp("^https?:\\/\\/" + window.location.hostname, "i")))) {