mirror of
https://github.com/discourse/discourse.git
synced 2025-02-16 03:22:46 +08:00
15 lines
468 B
JavaScript
15 lines
468 B
JavaScript
export default Discourse.Route.extend({
|
|
|
|
beforeModel: function() {
|
|
// 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');
|
|
}
|
|
}
|
|
|
|
});
|