A platform for community discussion. Free, open, simple.
FIX: make route to tag more robust
Sam56b6a4779d19
diff --git a/app/assets/javascripts/discourse/lib/url.js.es6 b/app/assets/javascripts/discourse/lib/url.js.es6index bbd556780b2..786ed36081f 100644--- a/app/assets/javascripts/discourse/lib/url.js.es6+++ b/app/assets/javascripts/discourse/lib/url.js.es6@@ -153,7 +153,12 @@ const DiscourseURL = Ember.Object.extend({},routeToTag(a) {- if (a && a.host !== document.location.host) {+ // skip when we are provided nowhere to route to+ if (!a || !a.href) {+ return false;+ }++ if (a.host !== document.location.host) {document.location = a.href;return false;}