Merge pull request #7309 from opf/fix/30224/use-referrer-back-url

[30224] Allow referrer back url to be used for back_url
pull/7315/head
Henriette Dinger 6 years ago committed by GitHub
commit bcb79c899b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      app/helpers/application_helper.rb

@ -362,8 +362,12 @@ module ApplicationHelper
def back_url_to_current_page_hidden_field_tag
back_url = params[:back_url]
if back_url.present?
hidden_field_tag('back_url', back_url.to_s)
back_url = back_url.to_s
elsif request.get? and !params.blank?
back_url = request.url
end
hidden_field_tag('back_url', back_url) unless back_url.blank?
end
def check_all_links(form_name)

Loading…
Cancel
Save