lang
Query Parameter nor Content-Language
Request Header Not Persisting in pygeoapi When Accessed from QGIS or HTML Interfaces
#1855
Labels
bug
Something isn't working
Description
When connecting to a pygeoapi service from QGIS using the
?lang=ar-EG
query parameter, the initial request respects the specified language and returns responses in Arabic. However, subsequent requests, such as navigating to specific collections or items (e.g.,?f=json
requests), do not persist thelang
parameter. This causes the responses to default back to the base language (en-US
), leading to inconsistent behavior in language settings.Steps to Reproduce
?lang=ar-EG
query parameter.Content-Language: ar-EG
).http://0.0.0.0:5001/collections
,items
andconformance
endpoints).Expected behavior
The
lang
query parameter should persist across all navigation requests. If?lang=ar-EG
andContent-Language: ar-EG
are specified in the initial request, subsequent navigations should continue to respect this parameter until it is explicitly changed.Screenshots/Tracebacks
Screenshots showing the initial request with

?lang=ar-EG
returning an English collections not Arabic.Screenshots of expected (I made the only supported language in pygeoapi config yaml is ar-EG).

Excerpts from QGIS debug logs demonstrating this behavior:
qgis-pygeoapi-ar.json
Environment
The text was updated successfully, but these errors were encountered: