From 21979cf68a71a1f4a06857e3363e9ddac0eafb66 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Wed, 24 Sep 2008 17:33:02 +0000 Subject: [PATCH] Fixes back_url in login filter (#1900). git-svn-id: http://redmine.rubyforge.org/svn/trunk@1905 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/controllers/application.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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