Correction Redirection après connexion admin

This commit is contained in:
Xavier J 2015-08-31 09:51:46 +02:00
parent 54b4679d19
commit 9c7b0620ad

View file

@ -7,7 +7,7 @@ class ApplicationController < ActionController::Base
def store_location
unless params[:controller] == 'devise/sessions'
url = "/admin/dossier/#{params[:dossier_id]}"
url = "/admin/dossiers/#{params[:dossier_id]}"
session[:user_return_to] = url
end
end