From ba920e248859a8ea6659d1afbb14700651d1a8b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliver=20G=C3=BCnther?= Date: Tue, 7 May 2019 11:36:00 +0200 Subject: [PATCH] Fix back_url generated from url-for --- app/helpers/application_helper.rb | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index d59608a21f..1cfc2d0db0 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -362,13 +362,8 @@ module ApplicationHelper def back_url_to_current_page_hidden_field_tag back_url = params[:back_url] if back_url.present? - back_url = back_url.to_s - elsif request.get? and !params.blank? - params.permit! - back_url = url_for(params) + hidden_field_tag('back_url', back_url.to_s) end - - hidden_field_tag('back_url', back_url) unless back_url.blank? end def check_all_links(form_name)