diff --git a/.github/workflows/links.yml b/.github/workflows/links.yml index 244adcc..b39aa09 100644 --- a/.github/workflows/links.yml +++ b/.github/workflows/links.yml @@ -33,8 +33,12 @@ jobs: fail: true # Accept the HTTP status code 429 (Too Many Requests) to avoid failing the workflow # when the rate limit is exceeded. + # lychee strictly validates fragments; Zulip fragments are JS-routed and lack HTML anchors, + # which leads to false failures. Strip Zulip fragments and check the base URL instead. + # See lychee issues: https://github.com/lycheeverse/lychee/issues/1791 args: | --no-progress --include-fragments --accept '100..=103, 200..=299, 429' + --remap '(https://rust-lang\.zulipchat\.com[^#]*)#.* $1' .