I'm a web developer working on macOS "Big Sur". I've noticed recently that if I create a web page in Visual Studio Code that contains an HTML anchor tag with a "mailto" href attribute and I launch a local web server using the Live Server extension, if I click that link, my Brave browser opens up. What I would expect is that the Apple Mail application would open.
<body>
<a href="mailto:[email protected]" id="email">[email protected]</a>
</body>
Is this a macOS problem or should I blame the Visual Studio Code extension?
mailto:
(likehttp:
) indicates the URI component called protocol or scheme. So your application (like VS Code) or OS may have a protocol-handler pointing to an unexpected application.