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.
when cities are written in Latin for example "Moscow". the jump menu works well by retrieving the right deals for the city.
But if i write it in Russian i.e (Москва) the result is false, meaning it bring the deals of all cities...
I did firebug and found out the url of Russian characters is converted to strange numbers
<option value="f027df09a334cf3e654a417aa17cdb33::/mysite/deals/%D0%B4%D0%BE%D0%B4%D0%BE%D0%BC%D0%B0">
Москва </option>
but without russian the result is
<option value="4419c399e7ee0cbd1c85ce89ad8fef33::/mysite/deals/Moscow">
Moscow </option>
So how do i correct this ?
Comment | File | Size | Author |
---|---|---|---|
#7 | opendeals-cyrilliccharacters-1466670-6.patch | 118.77 KB | nchar |
Comments
Comment #1
mrcniceguy CreditAttribution: mrcniceguy commentedI dont know if its good idea but now it is working after adding a line in views_plugin_style_jump_menu.inc file
just after
$path = url($url_options['path'], $url_options);
i added this
and now my urls are like this
Comment #2
yannisc CreditAttribution: yannisc commentedIs this finally a working solution for you?
Comment #3
mrcniceguy CreditAttribution: mrcniceguy commentedAS i said, am not sure if its best solution.
But it is working for me now.
Comment #4
yannisc CreditAttribution: yannisc commentedI confirm that the bug also exists with Greek city names.
This solution needs to hack the views module. We should find a way to make it work without having to hack modules or core.
Comment #5
yannisc CreditAttribution: yannisc commentedComment #6
yannisc CreditAttribution: yannisc commentedWe changed the way taxonomy filters deals to use taxonomy id instead of taxonomy name, so now it works with non-latin cities as well. Committed!
Comment #7
nchar CreditAttribution: nchar commentedThat was a difficult problem to solve. To fix this if you have already installed opendeals you need to apply the following patch at /profiles/opendeals. Then navigate to Structure > Features and revert "Opendeals Views" feature.
WARNING: If you have changed the settings of at least one opendeals' view then you must NOT revert this feature because you will lose your changes and you should change the view "cities_list" manually. Use a bare opendeals installation to view the changes.