Fix redirection to the same page