I want to guide users from an external system to a page, passing a GET parameter and specifying the target language. We're using localized URLs, so the idea is that the external system knows only about the default language URL and prepends the language if different to default (German), making the user land on the page in the given language together with the GET parameter.
As an exapmle, a German speaking user would land directly on: /meineseite/?param=value
An English user will land first on /en/meineseite/?param=value, which should then get redirected to the localized URL /en/mysite/?param=value.
Unfortunately the GET param gets lost during the process of redirecting. I already tried without success to hook into Session::redirect to conserve GET params.
As a possible solution I see creating a page, which takes an ID of the page it should redirect to, handling the resolution of the URL according to the language while conserving the GET params. However, I see this as a not too nice workaround to my current problem.
Do you have any suggestions on how I could solve my problem?