Redirect to correct branch