Use `replaceWith` in order to not break the back button.
This commit is contained in:
parent
222e13e5cc
commit
06965a999e
|
@ -22,6 +22,6 @@ Discourse.AdminSiteSettingsRoute = Discourse.Route.extend({
|
|||
**/
|
||||
Discourse.AdminSiteSettingsIndexRoute = Discourse.Route.extend({
|
||||
model: function() {
|
||||
this.transitionTo('adminSiteSettingsCategory', this.modelFor('adminSiteSettings')[0].nameKey);
|
||||
this.replaceWith('adminSiteSettingsCategory', this.modelFor('adminSiteSettings')[0].nameKey);
|
||||
}
|
||||
});
|
Loading…
Reference in New Issue