Custom webservlet value

Hi,

I try to change map vaadin servlet to /custom/* (for example) instead of /*

I does not work (frontend sources are not found).
Do you have an idea of what I forgot ?

I attached a small example.

Thanks
17409918.zip (7.1 KB)

Hi,
try to map also /frontend/* on your custom servlet

@WebServlet(value = { "/custom/*", "/frontend/*" }, asyncSupported = true) 

HTH
Marco

Hi,

Nice :slight_smile:

It’s working in dev and production mode.

Thanks a lot

I found a ticket about that. I will follow this.
https://github.com/vaadin/flow/issues/3600

If I change the servlet path, then my images are not found anymore.

I read this documentation https://vaadin.com/docs/flow/importing-dependencies/tutorial-importing.html

Is there a clean solution in Vaadin 12 (like ThemeResource or something like that)? (i can move my image in my web folder or frontend …)

Thanks,