Repository navigation
fix(rules): Cloudflare email-protection links read as mailto links across link rules and the crawl queue #838 - #1009
Conversation
|
Review of #1009 (Cloudflare email-protection links). I read the diff and the I found nothing that should block the merge. Dependencies and exports are in place:
Test coverage is good: the crawler tests exercise the real crawl, the sitemap, the carried-URL case and the stale-cache path. The |
…-mailto, nofollow-internal, https-downgrade and never queued by the crawl #838 Signed-off-by: Nik Cubrilovic <[email protected]>
07e93bd to
7fa56f1
Compare
|
Review of #1009 (Cloudflare email-protection links). I read the diff and the helper in I found no blocking problems. The change is scoped, the helper is pure, and the docs and CHANGELOG are updated. The new tests cover the crawler paths (fresh fetch, sitemap, carried seed, stale cache) and the three rules.
|
Closes #838
Cloudflare's email address obfuscation rewrites
mailto:links to/cdn-cgi/l/email-protection#<hex>. #829 stoppedlinks/broken-linksreading them as 404 pages. This closes the remaining paths:links/tel-mailtocounts the link as a mailto and checks the decoded address (from the fragment, ordata-cfemailon the anchor or inside it). One that does not decode is counted and never reported as invalid or mismatched.links/nofollow-internalandlinks/https-downgradeskip it./cdn-cgi/image/...URLs are still checked as images (existing parser and crawler tests from fix(rules): Cloudflare email-protection links are not broken links #811 #829 cover it; the new crawler test asserts it too).This re-applies one commit from draft #926 (211dcd9) on current main: that commit sits on a branch with the link-section work that is not on public main, so the three rule files were re-done by hand against main (no section labelling) and the tests, crawler hunk and docs line applied as they were.
Tests:
email-protection-838.test.tsin rules (8, all fail with the three rule files reverted), the two crawler tests (3), 11 pass.tsgo --noEmitclean in packages/rules and packages/crawler.tangly check --strictpasses.Docs: tel-mailto, nofollow-internal, https-downgrade pages updated, CHANGELOG bullet added. Agent skill: no change needed.