Check whether target matches origin under the given enqueue strategy. The URL scheme is not
considered here (use filterUrl for the combined scheme + strategy check).
The enqueueLinks implementation in @crawlee/core matches the same strategies via glob patterns
(see packages/core/src/enqueue_links/enqueue_links.ts) — keep the two in sync when changing either.
Parameters
strategy: EnqueueStrategy | all | same-domain | same-hostname | same-origin
Check whether
targetmatchesoriginunder the given enqueuestrategy. The URL scheme is not considered here (use filterUrl for the combined scheme + strategy check).The
enqueueLinksimplementation in@crawlee/corematches the same strategies via glob patterns (seepackages/core/src/enqueue_links/enqueue_links.ts) — keep the two in sync when changing either.