From dc91d91c2e2ed9fa8d70f0466a14b8c00f63ba1e Mon Sep 17 00:00:00 2001 From: Andreas Nedbal Date: Sun, 4 Sep 2022 14:53:54 +0200 Subject: [PATCH] Directly call matching route instead of redirecting for themes --- app/controllers/settings/theme_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/settings/theme_controller.rb b/app/controllers/settings/theme_controller.rb index d411bb32..22b702a2 100644 --- a/app/controllers/settings/theme_controller.rb +++ b/app/controllers/settings/theme_controller.rb @@ -41,6 +41,6 @@ class Settings::ThemeController < ApplicationController def destroy current_user.theme.destroy! - redirect_to settings_theme_path + redirect_to edit_settings_theme_path end end