mirror of
https://github.com/flarum/framework.git
synced 2025-02-25 01:56:24 +08:00

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).
8 lines
168 B
JavaScript
8 lines
168 B
JavaScript
import Ember from 'ember';
|
|
|
|
export default Ember.Route.extend({
|
|
deactivate: function() {
|
|
this.controllerFor('application').set('backButtonTarget', null);
|
|
}
|
|
});
|