##// END OF EJS Templates
Fixed: login filter providing incorrect back_url for Redmine installed in sub-directory (#1900)....
Jean-Philippe Lang -
r1888:7afdb01f0065
parent child
Show More
@@ -81,7 +81,7 class ApplicationController < ActionController::Base
81
81
82 def require_login
82 def require_login
83 if !User.current.logged?
83 if !User.current.logged?
84 redirect_to :controller => "account", :action => "login", :back_url => request.request_uri
84 redirect_to :controller => "account", :action => "login", :back_url => (request.relative_url_root + request.request_uri)
85 return false
85 return false
86 end
86 end
87 true
87 true
General Comments 0
You need to be logged in to leave comments. Login now