Closed RCheesley closed 1 year ago
Hi @RCheesley ! I already reported this issue here, and closing it as yours is way better explained 😁
Ooof sorry, my bad! Should have searched first! 🤦♀️
Saw this issue earlier, trying to add a redirection to the export calendar link.
I noticed the form transform the destination url in downcase
here:
Would need to write tests, and unfortunately can't help on this these next few weeks… Hope it might help in the debugging process, thanks!
Maybe we can fix this, it shouldn't be difficult. Although my preferred solution would be to add an checkbox for "case sensitive".
Note that to use this is generally not a good idea for creating friend redirections to attachments, this is because you can configure rails to expire those links and, therefore, will be always changing. To solve the media sharing we should create a "media pool" where to share those links. We could do that in a separate pr.
Thanks for pointing out media issues @microstudi, I understand this is another feature (and it is not really needed our side)
About case-sensitivity, I wonder why it should have a checkbox: rails routing is case sensitive, so it makes sense to have case-sensitive links insertion by default. I guess users copy/paste urls for destination, so I don't see why we should have one more option in the admin side. But maybe I miss a special use-case?
good point @froger , I think we can make it case-sensitive and that's it.
This is fixed by #240
Describe the bug I need to rewrite a search string to something a bit easier to manage so that users can easily find all available groups.
I used the URL rewriter to do this, however it seems that the search system is case sensitive, and when the URL is saved it is becoming all lowercase, so the filter is no longer applied.
Origin: /groups
Destination: /search?filter%5Bterm%5D=&filter%5Bwith_resource_type%5D=Decidim%3A%3AUserGroup&filter%5Bwith_scope%5D=
When saved it becomes:
/search?filter%5bterm%5d=&filter%5bwith_resource_type%5d=decidim%3a%3ausergroup&filter%5bwith_scope%5d=
So while you do actually land on the search page, the group's filter is not selected which is confusing.
Screen recording: https://watch.screencastify.com/v/PoyLAYMan3PWM7kgV18i (sorry for the sniffles, just getting over covid!)
To Reproduce Steps to reproduce the behavior:
/groups
/search?filter%5Bterm%5D=&filter%5Bwith_resource_type%5D=Decidim%3A%3AUserGroup&filter%5Bwith_scope%5D=
/groups
Expected behavior I would expect that either it would respect the case sensitivity (so that when you save the redirect it honours the case that was saved and doesn't convert it all to lowercase) or the case sensitivity would not matter at all, and the feature should work as expected - which might be a bug upstream.
Screenshots https://watch.screencastify.com/v/PoyLAYMan3PWM7kgV18i
Desktop (please complete the following information):