From 59bdff348c73babe3a3450aaa2d9d3af3be093c6 Mon Sep 17 00:00:00 2001 From: riking Date: Fri, 27 Mar 2015 18:54:56 -0700 Subject: [PATCH] Use Discourse.URL.routeTo --- .../discourse/controllers/background-notifications.js.es6 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/controllers/background-notifications.js.es6 b/app/assets/javascripts/discourse/controllers/background-notifications.js.es6 index 9bd1955a491..5a90a9cd4eb 100644 --- a/app/assets/javascripts/discourse/controllers/background-notifications.js.es6 +++ b/app/assets/javascripts/discourse/controllers/background-notifications.js.es6 @@ -106,7 +106,7 @@ export default Discourse.Controller.extend({ }, clickEventHandler() { - window.location.href = notificationUrl(firstUnseen); + Discourse.URL.routeTo(notificationUrl(firstUnseen)); window.focus(); },