Rerouting to another view after login

How do I redirect to another view after I login? I have my IndexView.java and the route is @Route(value=“”). Now I have a DashboardView.java and the route is @Route(value=“private/dashboard”). It always redirect to my IndexView.java after I logged in. How do I redirect this to DashboardView.java? Is there need a configuration for this? Thanks.