However, it only work when I login first time. After I logout and login again, it doesnt display the Dashboard page anymore. How do i make it to always display default page Dashboard after login
@Override
public void beforeEnter(BeforeEnterEvent event) {
// Check if the root path is accessed
if (event.getLocation().getPath().isEmpty()) {
// Redirect to the Dashboard route when accessing the root path
event.forwardTo(Dashboard.class);
}
}