Skip to content

fix: no-dead-urls false positives for mailto, anchor, and redirect URLs (DEVSITE-2405)#87

Merged
jiangy10 merged 6 commits into
mainfrom
claude/issue-86-20260514-1915
May 19, 2026
Merged

fix: no-dead-urls false positives for mailto, anchor, and redirect URLs (DEVSITE-2405)#87
jiangy10 merged 6 commits into
mainfrom
claude/issue-86-20260514-1915

Conversation

@jiangy10
Copy link
Copy Markdown
Contributor

Fixes false positives in the no-dead-urls linter for three URL patterns:

  • mailto: links are now skipped via a built-in skipUrlPatterns entry
  • Anchor/hash URLs no longer trigger anchor verification (checkAnchor: false)
  • HTTP→HTTPS redirects are now followed (followRedirects: true, fixing the previously misspelled followRedirect option)

Closes #86

JIRA

DEVSITE-2405

Test

AdobeDocs/adp-devsite-github-actions-test@4961677

Before

image

After

  • these 3 are expected to be caught
image

…redirects

- Add /^mailto:/ to skipUrlPatterns so email links are never checked
- Add checkAnchor: false to stop anchor fragment verification in page HTML
- Rename followRedirect → followRedirects (correct dead-or-alive option name) so HTTP→HTTPS redirects are followed instead of flagged

Fixes #86

Co-authored-by: jiangy10 <jiangy10@users.noreply.github.com>
Comment thread bin/runLint.js Outdated
Comment thread bin/runLint.js Outdated
Comment thread bin/runLint.js Outdated
Comment thread bin/runLint.js Outdated
@jiangy10
Copy link
Copy Markdown
Contributor Author

Resolved the commented content and updated test file with fragment test: AdobeDocs/adp-devsite-github-actions-test@501d641
image

timkim and others added 4 commits May 19, 2026 13:58
…redirects

- Add /^mailto:/ to skipUrlPatterns so email links are never checked
- Add checkAnchor: false to stop anchor fragment verification in page HTML
- Rename followRedirect → followRedirects (correct dead-or-alive option name) so HTTP→HTTPS redirects are followed instead of flagged

Fixes #86

Co-authored-by: jiangy10 <jiangy10@users.noreply.github.com>
@jiangy10 jiangy10 merged commit 69e7d94 into main May 19, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DEVSITE-2405 no-dead-urls linter false positives for anchor URLs, mailto links, and redirects

3 participants