vaadin 23 - how to re-route to login page when gets an invalid route

Now i can message:

Could not navigate to 'UserQRCheckinResult' Available routes: <root> AdminAds

i want to reroute to a page as login or home page. FYI @quick-witted-echidna
image.png

Use your security framework and redirect unauthenticated user.

how to catch this event ?

in MainView ?

It’s no event, it’s an exception as stated in the docs. You need an error view to catch this "HasErrorParameter "

got it. Thanks