Fixes back_url in login filter (#1900).
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1905 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
0177f732a2
commit
21979cf68a
|
@ -82,7 +82,7 @@ class ApplicationController < ActionController::Base
|
|||
|
||||
def require_login
|
||||
if !User.current.logged?
|
||||
redirect_to :controller => "account", :action => "login", :back_url => (request.relative_url_root + request.request_uri)
|
||||
redirect_to :controller => "account", :action => "login", :back_url => url_for(params)
|
||||
return false
|
||||
end
|
||||
true
|
||||
|
|
Loading…
Reference in New Issue