Fix back_url generated from url-for

pull/7279/head
Oliver Günther 6 years ago
parent 427413ffd3
commit ba920e2488
No known key found for this signature in database
GPG Key ID: A3A8BDAD7C0C552C
  1. 7
      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)

Loading…
Cancel
Save