From a50edb87ec8021e5d56eff444726830fd14d5091 Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Fri, 29 Apr 2016 16:42:04 -0400 Subject: [PATCH] FIX: Some notifications were not clearing properly. --- .../javascripts/discourse/widgets/notification-item.js.es6 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/assets/javascripts/discourse/widgets/notification-item.js.es6 b/app/assets/javascripts/discourse/widgets/notification-item.js.es6 index b09284c15..8803eaaf9 100644 --- a/app/assets/javascripts/discourse/widgets/notification-item.js.es6 +++ b/app/assets/javascripts/discourse/widgets/notification-item.js.es6 @@ -93,11 +93,10 @@ createWidget('notification-item', { const contents = new RawHtml({ html: `
${Discourse.Emoji.unescape(this.text(notificationType, notName))}
` }); const href = this.url(); const alt = I18n.t(`notifications.alt.${notName}`); - return href ? h('a', { attributes: { href, alt } }, contents) : contents; + return href ? h('a', { attributes: { href, alt, 'data-auto-route': true } }, contents) : contents; }, click(e) { - this.attrs.set('read', true); const id = this.attrs.id; Discourse.setTransientHeader("Discourse-Clear-Notifications", id);