Skip to content

Commit

Permalink
Update GA helper
Browse files Browse the repository at this point in the history
Use updated core helper to add query string to URL.

Depends on mysociety/alaveteli#8213
Fixes mysociety/alaveteli#8211
  • Loading branch information
gbp committed Apr 22, 2024
1 parent 4c4d361 commit 0fa6f65
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/helper_patches.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,7 @@ def is_contact_page?
end

def request_url_with_query
uri = URI.parse(request.original_url);
uri.query = URI.encode_www_form(
URI.decode_www_form(String(uri.query)).push(['query', @query])
);
uri.to_s
add_query_params_to_url(request.original_url, query: @query)
end
end

Expand Down

0 comments on commit 0fa6f65

Please sign in to comment.