diff --git a/app/assets/javascripts/discourse/controllers/notification.js.es6 b/app/assets/javascripts/discourse/controllers/notification.js.es6 index e62e174f227..2fa73d44726 100644 --- a/app/assets/javascripts/discourse/controllers/notification.js.es6 +++ b/app/assets/javascripts/discourse/controllers/notification.js.es6 @@ -1,5 +1,7 @@ import ObjectController from 'discourse/controllers/object'; +var INVITED_TYPE= 8; + export default ObjectController.extend({ scope: function () { @@ -25,6 +27,10 @@ export default ObjectController.extend({ if (topicId) { return Discourse.Utilities.postUrl(this.safe("slug"), topicId, this.safe("post_number")); } + + if (this.get('notification_type') === INVITED_TYPE) { + return '/my/invited'; + } }.property("data.{badge_id, badge_name}", "slug", "topic_id", "post_number"), description: function () {