Fix: Server error on logout if redirect to other host

This commit is contained in:
kidhab 2023-09-18 18:05:57 +02:00
parent e194c68397
commit 2e72e1f73f

View file

@ -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