I spent hours troubleshooting why the url path was getting stripped from requests in our Nodejs/Expressjs based app. The reason was this line in Kubernetes’ Ingress:
nginx.ingress.kubernetes.io/rewrite-target : /
Removing it fixed the issue. Check the Kubernetes documentation
for more details.