summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2008-09-24 17:33:02 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2008-09-24 17:33:02 +0000
commit21979cf68a71a1f4a06857e3363e9ddac0eafb66 (patch)
tree8ef8e0c759c3f4fd5a8d0cd32dd1c04b1ee565eb
parent0177f732a2c6cf1709c983727bd560273be19a8f (diff)
downloadredmine-21979cf68a71a1f4a06857e3363e9ddac0eafb66.tar.gz
redmine-21979cf68a71a1f4a06857e3363e9ddac0eafb66.zip
Fixes back_url in login filter (#1900).
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1905 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--app/controllers/application.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/application.rb b/app/controllers/application.rb
index 238239c44..2f8f493cd 100644
--- a/app/controllers/application.rb
+++ b/app/controllers/application.rb
@@ -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