From 9e20edf2d4f178c2eea0e86385e8b2e0f9d140bd 2016-07-14 07:43:34 From: Jean-Philippe Lang Date: 2016-07-14 07:43:34 Subject: [PATCH] Don't generate URL from params. git-svn-id: http://svn.redmine.org/redmine/trunk@15659 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 6768d16..848965c 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -213,7 +213,7 @@ class ApplicationController < ActionController::Base if !User.current.logged? # Extract only the basic url parameters on non-GET requests if request.get? - url = url_for(params) + url = request.original_url else url = url_for(:controller => params[:controller], :action => params[:action], :id => params[:id], :project_id => params[:project_id]) end