Defender login url not masked in emails

The new website registration email sent to user after this site creation contains a link with the WordPress dashboard link, however when Defender url masking is enabled,that link should be updated to /wp-admin to /new-url. But it doesn't seem like it's the case.