From 8d23f6ae99b666ac3d8df96ba30501be78c28194 Mon Sep 17 00:00:00 2001 From: Christophe Robillard Date: Wed, 4 Nov 2020 17:56:23 +0100 Subject: [PATCH] remove useless redirection for manager sign_in and out The manager alias for signin causes layout problems --- app/controllers/manager/application_controller.rb | 2 +- app/views/manager/application/_navigation.html.erb | 2 +- config/routes.rb | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/controllers/manager/application_controller.rb b/app/controllers/manager/application_controller.rb index 4d8153b15..90cba7225 100644 --- a/app/controllers/manager/application_controller.rb +++ b/app/controllers/manager/application_controller.rb @@ -18,7 +18,7 @@ module Manager elsif administration_signed_in? redirect_to edit_administration_otp_path else - redirect_to manager_sign_in_path + redirect_to new_administration_session_path end end diff --git a/app/views/manager/application/_navigation.html.erb b/app/views/manager/application/_navigation.html.erb index 891658871..eb6ce1ad8 100644 --- a/app/views/manager/application/_navigation.html.erb +++ b/app/views/manager/application/_navigation.html.erb @@ -8,7 +8,7 @@ as defined by the routes in the `admin/` namespace %>