Set custom default route

Is it possible to change the default route from “” to something else?

There’s no such thing as a “default route”. Routes have a path (or value if you look at the @Route annotation) which can be any String, including "". If you only specify the @Route annotation on a Component and don’t provide the value property, the path will be derived from the class name of the component. The derived name will be in lower case and trailing “View” will be removed. Also, MainView or Main names will be mapped to root (value will be “”).

1 Like

I want my website to open on a specific route and not on root. is that possible?

You should consult your servlet container documentation for that.