Use `replaceWith` in order to not break the back button.

This commit is contained in:
Robin Ward 2014-06-05 10:18:11 -04:00
parent 222e13e5cc
commit 06965a999e
1 changed files with 2 additions and 2 deletions

View File

@ -22,6 +22,6 @@ Discourse.AdminSiteSettingsRoute = Discourse.Route.extend({
**/ **/
Discourse.AdminSiteSettingsIndexRoute = Discourse.Route.extend({ Discourse.AdminSiteSettingsIndexRoute = Discourse.Route.extend({
model: function() { model: function() {
this.transitionTo('adminSiteSettingsCategory', this.modelFor('adminSiteSettings')[0].nameKey); this.replaceWith('adminSiteSettingsCategory', this.modelFor('adminSiteSettings')[0].nameKey);
} }
}); });