Commit 7afdb01f authored by Jean-Philippe Lang's avatar Jean-Philippe Lang

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
parent 1d542a51
......@@ -81,7 +81,7 @@ class ApplicationController < ActionController::Base
def require_login
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
end
true
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment