The GitHub Actions job "SiteMesh 2 Compatibility" on 
grails-core.git/locale-autonym-titlecase has succeeded.
Run started by GitHub user codeconsole (triggered by codeconsole).

Head commit for run:
7e0316c71c597593c669f7b2608a56c8534155df / Scott Murphy Heiberg 
<[email protected]>
localeSelect: keep the current query string when switching language

The links and dropdown renders emitted a bare `?lang=de`, which by definition
replaces the whole query component. A visitor changing language on
/books?page=2&sort=title landed on /books?lang=de with the paging and sorting
silently discarded.

The href now carries the current query string over, dropping any existing value
for the language parameter rather than duplicating it. The path needs no
handling, since a query-only href already resolves against the current URL.

Reading request.queryString rather than params is deliberate: params also holds
values bound from the URL path by the mappings (an id in /book/show/5) plus the
controller and action names, none of which belong in a query string.

Both render modes were affected — links since it was introduced, and dropdown
because it inherited the same pattern.

Report URL: https://github.com/apache/grails-core/actions/runs/30178065110

With regards,
GitHub Actions via GitBox

Reply via email to