Re-adding the redirection after the connection.