We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When using an asynchronous path that includes array params, the generated URL for pagination converts the key from an array to a single value.
Steps to reproduce the behavior:
countries_path(continents: ["Asia"])
/countries?continents[]=Asia
helpers.hw_async_combobox_options(countries, next_page: 2)
/countries?continents=Asia&page=2
The requested URL for pagination should be /countries?continents[]=Asia&page=2
/countries?continents[]=Asia&page=2
Pagy gem demonstrates an alternative way of safely constructing URLs using Rack::Utils.build_nested_query that might be helpful. See https://github.com/ddnexus/pagy/blob/master/gem/lib/pagy/url_helpers.rb
Rack::Utils.build_nested_query
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Bug description
When using an asynchronous path that includes array params, the generated URL for pagination converts the key from an array to a single value.
To Reproduce
Steps to reproduce the behavior:
countries_path(continents: ["Asia"])
/countries?continents[]=Asia
helpers.hw_async_combobox_options(countries, next_page: 2)
/countries?continents=Asia&page=2
Expected behavior
The requested URL for pagination should be
/countries?continents[]=Asia&page=2
Version Numbers
HotwireCombobox info
Context
Pagy gem demonstrates an alternative way of safely constructing URLs using
Rack::Utils.build_nested_query
that might be helpful. See https://github.com/ddnexus/pagy/blob/master/gem/lib/pagy/url_helpers.rbThe text was updated successfully, but these errors were encountered: