diff --git a/app/controllers/sessions_controller.rb b/app/controllers/sessions_controller.rb index 7de1b9de..711d67ae 100644 --- a/app/controllers/sessions_controller.rb +++ b/app/controllers/sessions_controller.rb @@ -28,6 +28,7 @@ class SessionsController < ApplicationController def destroy session[:user_id] = nil + session[:return_to] = nil redirect_to login_url, :notice => I18n.t('sessions.logged_out') end end