mirror of
https://github.com/flarum/framework.git
synced 2024-12-12 14:13:37 +08:00
976d97877b
It’s not quite like the browser’s back button because it doesn’t necessarily go back to the last URL; rather, it goes back to the last interface. So if you go into a discussion, then go to a different discussion via the side pane, the back button will still take you back to the index (not the previous discussion).
18 lines
377 B
JavaScript
18 lines
377 B
JavaScript
import Ember from 'ember';
|
|
|
|
import PushesHistory from 'flarum/mixins/pushes-history';
|
|
|
|
export default Ember.Route.extend(PushesHistory, {
|
|
historyKey: 'user',
|
|
|
|
model: function() {
|
|
return Ember.RSVP.resolve(Ember.ArrayProxy.create());
|
|
},
|
|
|
|
setupController: function(controller, model) {
|
|
this._super(controller, model);
|
|
|
|
controller.send('loadResults');
|
|
}
|
|
});
|