diff --git a/app/assets/javascripts/admin/routes/admin-customize-email-style-index.js.es6 b/app/assets/javascripts/admin/routes/admin-customize-email-style-index.js.es6 new file mode 100644 index 00000000000..a6ba0628295 --- /dev/null +++ b/app/assets/javascripts/admin/routes/admin-customize-email-style-index.js.es6 @@ -0,0 +1,7 @@ +import Route from "@ember/routing/route"; + +export default Route.extend({ + beforeModel() { + this.replaceWith("adminCustomizeEmailStyle.edit", "html"); + } +}); diff --git a/app/assets/javascripts/admin/routes/admin-customize-email-style.js.es6 b/app/assets/javascripts/admin/routes/admin-customize-email-style.js.es6 index d63186e0eb0..3ec7b6e1bba 100644 --- a/app/assets/javascripts/admin/routes/admin-customize-email-style.js.es6 +++ b/app/assets/javascripts/admin/routes/admin-customize-email-style.js.es6 @@ -1,10 +1,7 @@ import Route from "@ember/routing/route"; + export default Route.extend({ model() { return this.store.find("email-style"); - }, - - redirect() { - this.transitionTo("adminCustomizeEmailStyle.edit", "html"); } });