refactor(client): remove useless logic in redirection