From 83eb3924036481acda4c7f43a569cf9552ee59c8 Mon Sep 17 00:00:00 2001 From: Kevin Ansfield Date: Thu, 21 Oct 2021 16:35:20 +0100 Subject: [PATCH] Added a redirect from /settings/theme -> /settings/design no issue - ensure the old theme screen is not accessible when the `customThemeSettings` feature is active to avoid confusion --- ghost/admin/app/routes/settings/theme.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ghost/admin/app/routes/settings/theme.js b/ghost/admin/app/routes/settings/theme.js index 013db73e45..535468d47b 100644 --- a/ghost/admin/app/routes/settings/theme.js +++ b/ghost/admin/app/routes/settings/theme.js @@ -4,11 +4,16 @@ import RSVP from 'rsvp'; import {inject as service} from '@ember/service'; export default AuthenticatedRoute.extend(CurrentUserSettings, { + feature: service(), settings: service(), beforeModel() { this._super(...arguments); this.transitionAuthor(this.session.user); + + if (this.feature.customThemeSettings) { + this.transitionTo('settings.design'); + } }, model() {