The language block does not preserve GET parameters other than 'q'
Steps to reproduce:
0. Enable the language block
1. Turn clean URLs on
2. Go to some URL on your site with a '?' and some query parameters, maybe something like http://treehouse.ofb.net/go/en/place/recent?page=1
3. The language block links will drop everything after and including the question mark.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | i18n-language-block-104973.patch_0.txt | 2.06 KB | Wesley Tanaka |
| #1 | i18n-language-block-104973.patch.txt | 1.94 KB | Wesley Tanaka |
Comments
Comment #1
Wesley Tanaka commentedpatch introduces a $query parameter to i18n_get_links and theme_i18n_link
Comment #2
Wesley Tanaka commentednew patch does not cause an extra '?' to appear when the URL has no parameters
Comment #3
jose reyero commentedApplied with some changes, thanks
Comment #4
(not verified) commented