Open tkrotoff opened 9 years ago
Hackish fix here:
if (href.indexOf('mailto:') != 0 && $router.recognize(href)) {
$router.navigate(href);
event.preventDefault();
}
With ES6/TypeScript you can replace href.indexOf('mailto:') != 0
by !href.startsWith('mailto:')
+1
<a href="mailto:hello">Send mail</a>
gives URL http://example.com/#/mailto:helloDebugging: anchorLinkDirective parses the href attribute, recognized it as an internal/component route (
if ($router.recognize(href))
) and call$router.navigate(href)
.mailto links are probably not the only ones affected.