mirror of
https://github.com/xroche/httrack.git
synced 2026-07-23 17:19:17 +03:00
An anchored hyperlink target.html#sec must fetch the target with the fragment dropped yet keep the fragment in the rewritten local link so the anchor still resolves. This already works; #279 is a stale report from the Google Code era with no current repro. Pin the behavior with a local-crawl test: the strict server 400s on a '#' in the request-target (so a leaked fragment fails the fetch), and a new --file-matches audit asserts the mirrored link keeps #sec/#sec2 for both the unquoted and quoted forms. Signed-off-by: Xavier Roche <roche@httrack.com> Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>