Prevent redirection to /dashboard