Skip to content

Commit 103ffe0

Browse files
authored
Example for pathAliases
1 parent b20f303 commit 103ffe0

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

specs/crawler/common/schemas/action.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Action:
3232
It functions similarly to the `pathsToMatch` action but without record extraction.
3333
3434
35-
`discoveryPatterns` uses [micromatch](https://github.com/micromatch/micromatch) to support matching with wildcards, negation, and other features.
35+
Uses [micromatch](https://github.com/micromatch/micromatch) to match wildcards, negation, and other features.
3636
The crawler adds all matching URLs to its queue.
3737
items:
3838
$ref: '#/urlPattern'
@@ -217,6 +217,14 @@ pathAliases:
217217
218218
219219
The crawl continues from the _transformed_ URLs.
220+
221+
222+
For example, if you create a mapping for `{ "dev.example.com": { '/foo': '/bar' } }` and the crawler encounters `https://dev.example.com/foo/hello/`,
223+
it’s transformed to `https://dev.example.com/bar/hello/`.
224+
225+
226+
> Compare with the `hostnameAliases` action.
227+
220228
additionalProperties:
221229
type: object
222230
description: Hostname for which matching paths should be replaced.

0 commit comments

Comments
 (0)