Welcome!
What did you do?
When using the ingress-nginx provider with the nginx.ingress.kubernetes.io/app-root annotation, query parameters for requests to the root are not preserved in the redirect. This is a re-report of the issue originally reported in #12955, as the resolution #12986 was incomplete. Specifically, the PR updated the regex to add a new capture group for the query parameters, but did not update the Replacement to include the captured query parameters.
For example, take an ingress with annotation nginx.ingress.kubernetes.io/app-root: /login
Expected behavior
https://site.example.com/ redirects to https://site.example.com/login/
https://site.example.com/?foo=bar redirects to https://site.example.com/login/?foo=bar
What did you see instead?
Observed behavior
https://site.example.com/ redirects to https://site.example.com/login (as expected)
https://site.example.com/?foo=bar redirects to https://site.example.com/login (query parameters are dropped)
What version of Traefik are you using?
3.7.3
What is your environment & configuration?
Using the kubernetesingressnginx
If applicable, please paste the log output in DEBUG level
No response
Welcome!
What did you do?
When using the ingress-nginx provider with the
nginx.ingress.kubernetes.io/app-root annotation, query parameters for requests to the root are not preserved in the redirect. This is a re-report of the issue originally reported in #12955, as the resolution #12986 was incomplete. Specifically, the PR updated the regex to add a new capture group for the query parameters, but did not update theReplacementto include the captured query parameters.For example, take an ingress with annotation
nginx.ingress.kubernetes.io/app-root: /loginExpected behavior
https://site.example.com/redirects tohttps://site.example.com/login/https://site.example.com/?foo=barredirects tohttps://site.example.com/login/?foo=barWhat did you see instead?
Observed behavior
https://site.example.com/redirects tohttps://site.example.com/login(as expected)https://site.example.com/?foo=barredirects tohttps://site.example.com/login(query parameters are dropped)What version of Traefik are you using?
3.7.3
What is your environment & configuration?
Using the
kubernetesingressnginxIf applicable, please paste the log output in DEBUG level
No response