Fixed: login filter providing incorrect back_url for Redmine installed in sub-directory (#1900).
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1890 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
1d542a5113
commit
7afdb01f00
|
@ -81,7 +81,7 @@ class ApplicationController < ActionController::Base
|
||||||
|
|
||||||
def require_login
|
def require_login
|
||||||
if !User.current.logged?
|
if !User.current.logged?
|
||||||
redirect_to :controller => "account", :action => "login", :back_url => request.request_uri
|
redirect_to :controller => "account", :action => "login", :back_url => (request.relative_url_root + request.request_uri)
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
true
|
true
|
||||||
|
|
Loading…
Reference in New Issue