Closed mvysny closed 1 year ago
Network traffic from app with the trailing slash:
Network traffic from app without the trailing slash:
The problem is that in the latter case, the request for indexhtml.js
goes to http://localhost/VAADIN/build/indexhtml.2ae6b87b.js
while it should go to http://localhost/vaadin-boot-example-gradle/VAADIN/build/indexhtml.2ae6b87b.js
Easiest workaround is to redirect to the URL with the trailing /
Upstream ticket: https://github.com/vaadin/flow/issues/15399
The problem is that the index.html file links to vaadin js bootstrap via ./VAADIN/
relative URL which resolves to http://localhost/VAADIN/build/indexhtml.2ae6b87b.js
when the request URL is
http://localhost/vaadin-boot-example-gradle
(no trailing slash).
Possible solutions:
Workaround is to add a reverse-proxy rule which redirects to a path ending with a slash /
: https://github.com/kubernetes/ingress-nginx/issues/646#issuecomment-396030010