You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
crawler: seed order should key on the typed start URL only (deep-start follow-up to #1385) #1405
Follow-up from the review of #1385 (deep start URL, #1369).
prioritizeSeed in packages/crawler/src/core/crawler.ts is hasDeepPath(typed) || hasDeepPath(destination). An origin-only start (https://example.com/) that redirects to a deep page (/en/) therefore still enqueues the seed ahead of the sitemap. That changes frontier ownership (the seed, not the sitemap copy, owns the entry) and the sitemapPendingCount baseline in a narrow quick-mode edge: with disableLinkDiscovery and a sitemap that lists only the destination, the sitemap no longer counts as pending and link discovery is switched back on. Origin-only starts are documented as unchanged.
Separately, the optional-keys list in docs/configuration/output.mdx ("appear when they apply") does not name meta.requestedUrl.
Acceptance Criteria
An origin-only start URL that redirects to a deep page keeps the root-start frontier order: the sitemap copy of the destination owns its entry, as before deep starts were prioritised
A seed that is also a sitemap URL still counts toward sitemapPendingCount, so quick mode with a sitemap that lists only the seed keeps link discovery off
A crawler test through the real crawler.start() covers a typed root that redirects to a deep page, with the destination also in the sitemap
docs/configuration/output.mdx names meta.requestedUrl in the optional-keys list
Activity
fix(crawler): seed order keys on the typed start URL only; a seed tha…
nc9 commentedon Oct 31, 2026
Shipped in v0.0.151 (
e3dc86e4), verified against main: every acceptance criterion is met. Release: https://github.com/squirrelscan/squirrelscan/releases/tag/v0.0.151nik