Important Notice - Forums is archived
To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
URL pattern for custom components
Lets say my application name is
simple_app
, whenever i switch to a custom component by setting the window content how can i change the url pattern name:
I have two components
main
and a
login
, when the user first visits my application, i want the url to look like this
http://localhost:8080/simple_app/login
then after logging in, i want the url to look like this
http://localhost:8080/simple_app/main
and this should go on for each tab, action and component i set?
is this possible, my web.xml has a /* vaadin pattern that stays at the same url name
Browsers have some limitation on how you can change the URL in a smooth way.
For Vaadin the easiest is to use fragments
There is a discussion of why you need the # in the URL in this forum post