Fix route redirection bug.