]> source.dussan.org Git - redmine.git/commitdiff
Fixed: login filter providing incorrect back_url for Redmine installed in sub-directo...
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 21 Sep 2008 12:07:44 +0000 (12:07 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 21 Sep 2008 12:07:44 +0000 (12:07 +0000)
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1890 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/controllers/application.rb

index d21d0bd8c9cebd3c687814f46452c9db3adc4bcd..795c50d4bd544a2b4b58ff083b8e0bc3be6dd19f 100644 (file)
@@ -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