Redirect to origin page after connect