Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
i have exposed filters on a site where views remembers the user´s input. you get the results below in a table. one of the columns is sortable and if you press it then all german ü ä ö changes in the textfield of the exposed filter to strange signs. i think the javascript has a wrong coding, it should have utf8 i think
Comment | File | Size | Author |
---|---|---|---|
#6 | decodeURI.patch | 969 bytes | merlinofchaos |
#4 | sshot-1.png | 10.3 KB | mp |
#4 | sshot-2.png | 10.74 KB | mp |
Comments
Comment #1
dawehneri disabled my js and tryed out his site
-> sort worked perfect
=> the problem should be in js or sort related php
ajax_view.js
Comment #2
mp CreditAttribution: mp commentedif you turn of js then the focus of the website jumps to the top and doesn´t stay at the place where you press the sort link. so you always have to scroll down.
Comment #3
merlinofchaos CreditAttribution: merlinofchaos commentedThere isn't really enough info here for me to recreate this and debug this. I don't instantly know what's wrong and you talk about exposed filters and clickable sorts as though they're the same thing.
Comment #4
mp CreditAttribution: mp commentedi made 2 screenshots ... i hope you see now what the problem is
if not contact me please on IRC, i´m online every day, nick J-O-K-E-R
thanks + best wishes
markus
Comment #5
mp CreditAttribution: mp commentedmerlinofchaos - you see now what´s the problem is? is it possible to solve it?
best wishes
markus
Comment #6
merlinofchaos CreditAttribution: merlinofchaos commentedThis wasn't code I wrote so it took me a bit to track this down.
I'm not 100% sure this is the right patch, so I want to get Nedjo to say yes or no, and you to let me know if this patch fixes it:
The summary is that it appears we should be using decodeURI instead of unescape when parsing query parameters.
Comment #7
merlinofchaos CreditAttribution: merlinofchaos commentedOk, got the go ahead from Nedjo, tho it uses decodeURIComponent instead of decodeURI. Committed.
Comment #8
mp CreditAttribution: mp commentedworks perfect :)
thanks a lot
best wishes
markus