]> source.dussan.org Git - redmine.git/commitdiff
Fixes back_url in login filter (#1900).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Wed, 24 Sep 2008 17:33:02 +0000 (17:33 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Wed, 24 Sep 2008 17:33:02 +0000 (17:33 +0000)
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1905 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/controllers/application.rb

index 238239c440c4c72f9506bd9d36f9cc32fcc91a30..2f8f493cd29df5194a87a6b97f5c9fffd435eee0 100644 (file)
@@ -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