Fixed redirection issue after a logged-in user navigates to front page.