Update ExternalUrlGenerator.php