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.

Comments

Wesley Tanaka’s picture

Assigned: Wesley Tanaka » Unassigned
Status: Active » Needs review
StatusFileSize
new1.94 KB

patch introduces a $query parameter to i18n_get_links and theme_i18n_link

Wesley Tanaka’s picture

StatusFileSize
new2.06 KB

new patch does not cause an extra '?' to appear when the URL has no parameters

jose reyero’s picture

Status: Needs review » Fixed

Applied with some changes, thanks

Anonymous’s picture

Status: Fixed » Closed (fixed)