diff --git a/app/assets/javascripts/discourse/routes/user-index.js.es6 b/app/assets/javascripts/discourse/routes/user-index.js.es6 index 1a9cc9101c8..24a536237e2 100644 --- a/app/assets/javascripts/discourse/routes/user-index.js.es6 +++ b/app/assets/javascripts/discourse/routes/user-index.js.es6 @@ -1,7 +1,14 @@ export default Discourse.Route.extend({ beforeModel: function() { - this.transitionTo('userActivity'); + // HACK: Something with the way the user card intercepts clicks seems to break how the + // transition into a user's activity works. This makes the back button work on mobile + // where there is no user card as well as desktop where there is. + if (Discourse.Mobile.mobileView) { + this.replaceWith('userActivity'); + } else { + this.transitionTo('userActivity'); + } } }); diff --git a/app/assets/javascripts/discourse/templates/mobile/discovery/topics.hbs b/app/assets/javascripts/discourse/templates/mobile/discovery/topics.hbs index 4267c64e5e9..82f0e59d791 100644 --- a/app/assets/javascripts/discourse/templates/mobile/discovery/topics.hbs +++ b/app/assets/javascripts/discourse/templates/mobile/discovery/topics.hbs @@ -16,13 +16,13 @@ {{topic-list showPosters=true currentUser=currentUser - hideCategory=hideCategory - topics=topics}} + hideCategory=model.hideCategory + topics=model.topics}} {{/if}}