Having an issue landing on the correct page after login screen

I have an application with two sets of users an Admin and a regular user when logging in with either login I land on a page that says:

Could not
navigate to ‘’
Reason: Couldn’t find route for ‘’
full image attached

The issue is I’m not sure how to set the route with two sets of authentication, can anyone offer any assistance?
18294597.png

Sounds like after logging in, your application is routing the user to the empty URL http://your-app/ but you don’t have an empty route (@Route("")) available. You can do one of the following:

  • Change your login process to redirect the use to some existing Route like http:/your-app/Apply
  • Add a view with the empty Route annotation
  • Add a @RouteAlias("") annotation to one of your existing routes

Once you have the initial navigation working, you can also choose to reroute the user (e.g. administrators to one place and regular users to another) in a navigation event: https://vaadin.com/docs/v14/flow/routing/tutorial-routing-lifecycle.html#rerouting