AuthenticatedUrlHelper: Fix extraction of parameters

* Previously, all parameters were removed
This commit is contained in:
Sebastian Serth
2022-10-04 14:39:52 +02:00
parent b4bac35fdc
commit 53db7e80d0

View File

@ -99,7 +99,7 @@ module AuthenticatedUrlHelper
# Remove the given parameters from the query string
query_params = Rack::Utils.parse_nested_query(parsed_url.query || '')
removed_params = query_params.slice!(parameters)
removed_params = query_params.extract!(*parameters.map(&:to_s))
# Add the query string back to the URL
parsed_url.query = URI.encode_www_form(query_params).presence