diff --git a/assets/javascripts/views/content/content.coffee b/assets/javascripts/views/content/content.coffee index e0a89678..e6616f13 100644 --- a/assets/javascripts/views/content/content.coffee +++ b/assets/javascripts/views/content/content.coffee @@ -157,7 +157,9 @@ class app.views.Content extends app.View $.stopEvent(event) findTargetByHash: (hash) -> - try $.id decodeURIComponent(hash) catch + el = try $.id decodeURIComponent(hash) catch + el or= try $.id(hash) catch + el isExternalUrl: (url) -> url?[0..5] in ['http:/', 'https:']