Skip to content

Commit 0d1fe3d

Browse files
committed
fixed broken mailto links
1 parent 8e1a30a commit 0d1fe3d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

website/plugins/gatsby-plugin-validate-links/utils.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ function deconstructLink(targetLink, documentSlug) {
5353

5454
function getBrokenLinks(document, otherDocuments) {
5555
return document.links.filter((link) => {
56+
if (link.url.startsWith("mailto:")) {
57+
return false;
58+
}
59+
5660
// extract potential heading from link
5761
const { link: key, hash: headingAnchor } = deconstructLink(
5862
link.url,

0 commit comments

Comments
 (0)