Problem with Login component when using vaadin.urlMapping

Hi,
As a Vaadin newbie, I have written a simple application with Vaadin 24 that is using the Login component (https://vaadin.com/docs/latest/components/login). Everything is working fine when I deploy the app (in embedded tomcat) on http://localhost:8080.
I would like to deploy it on http://localhost:8080/myapp so I added : vaadin.urlMapping=/myapp/* in my application.properties.
This application is still working but on successful login, I hit an error page with :

** Whitelabel Error Page**
This application has no explicit mapping for /error, so you are seeing this as a fallback.
Wed Apr 05 09:48:33 CEST 2023
There was an unexpected error (type=Not Found, status=404).
No message available

and the page URL is http://localhost:8080/sw-runtime-resources-precache.js?continue

Has anybody faced this issue ? My guess is that the Login component is not aware that the root context is /myapp but I don’t see how to customize it.

Any advice ?

Instead of urlMapping, why aren’t you using the context path of spring boot?

Thanks a lot knoobie, it is now working. I am new to both spring boot and vaadin and I thought vaadin.urlMapping was the right way to achieve it.