From 2e72e1f73fe03b3257758682e55122fda1163f49 Mon Sep 17 00:00:00 2001 From: kidhab Date: Mon, 18 Sep 2023 18:05:57 +0200 Subject: [PATCH] Fix: Server error on logout if redirect to other host --- app/controllers/sessions_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/sessions_controller.rb b/app/controllers/sessions_controller.rb index 22750360..e69bb18a 100644 --- a/app/controllers/sessions_controller.rb +++ b/app/controllers/sessions_controller.rb @@ -22,7 +22,7 @@ class SessionsController < ApplicationController def destroy logout if FoodsoftConfig[:logout_redirect_url].present? - redirect_to FoodsoftConfig[:logout_redirect_url] + redirect_to FoodsoftConfig[:logout_redirect_url], allow_other_host: true else redirect_to login_url, notice: I18n.t('sessions.logged_out') end