diff --git a/app/assets/javascripts/discourse/routes/topic_route.js b/app/assets/javascripts/discourse/routes/topic_route.js index 94821fc08..b1f0ac802 100644 --- a/app/assets/javascripts/discourse/routes/topic_route.js +++ b/app/assets/javascripts/discourse/routes/topic_route.js @@ -23,9 +23,8 @@ Discourse.TopicRoute = Discourse.Route.extend({ composePrivateMessage: function(user) { var self = this; - - Discourse.URL.routeTo("/users/" + user.get('username_lower') + "/private-messages").then(function () { - self.controllerFor('userActivity').send('composePrivateMessage') + this.transitionTo('userPrivateMessages', user).then(function () { + self.controllerFor('userActivity').send('composePrivateMessage'); }); }, diff --git a/app/assets/javascripts/discourse/templates/poster_expansion.handlebars b/app/assets/javascripts/discourse/templates/poster_expansion.handlebars index 859871fc7..0f5a0c7de 100644 --- a/app/assets/javascripts/discourse/templates/poster_expansion.handlebars +++ b/app/assets/javascripts/discourse/templates/poster_expansion.handlebars @@ -8,7 +8,9 @@