decidim-ice / decidim-module-decidim_awesome

Additional components and Opt-In usability and UX tweaks for Decidim.
GNU Affero General Public License v3.0
24 stars 24 forks source link

User search does not work if locale param is part of the URL #281

Open arusa opened 7 months ago

arusa commented 7 months ago

Describe the bug

When you try to search for users in the "Scoped Admins" feature, you can't find any users if the end of the URL contains something like ?locale=en.

Example: https://your.decidim.host/admin/decidim_awesome/config/admins?locale=en

In the dev tools you will see requests to this URL that contains 2 "?":

https://decidim-audit-org.participation.works/admin/decidim_awesome/users?locale=en?term=pentester%2Bdecidimawesomescopedadmin%40pentest.ait.ac.at

To Reproduce

See above

Expected behavior

To return users matching the query.

Desktop (please complete the following information):

Additional context

I tried it with the develop branch commit 7b356fe370655eca7661df3178ee0a76b7db50be