ingress-nginx: Rewrite rules do not redirect if missing trailing slash
Right now it seems that when you have a redirect rule. See below for Ingress config. When I access example.com/something/
everything works as expected - however, when I access example.com/something
there is no redirect to example.com/something/
therefore the page doesn’t work properly.
I can use a workaround in this past issue (now closed) here: https://github.com/kubernetes/ingress-nginx/issues/646
I think there should be an easier way to enable this behaviour (without a config snippet) or it should be enabled by default (probably an annotation of some kind)
https://github.com/kubernetes/ingress-nginx/issues/646
I am using 1.18.20 but it doesn’t require a particular version
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 4
- Comments: 21 (14 by maintainers)
Sorry for late response. I hope to test this in more detail this week. Thanks 😃
On Wed, 16 Mar 2022 at 4:37 pm, Vyom Yadav @.***> wrote:
@k8s-triage-robot: Closing this issue, marking it as “Not Planned”.
In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.