Related services: PathsService:
lynkow.paths.list(),lynkow.paths.matchRedirect(),lynkow.paths.resolve()
Path
Interface
One public URL returned by paths.list(): a published article, a blog category archive
or, with include: 'commerce', a product, product category or product collection page.
It carries requestedLocale and isFallback when the request carries a locale (see
LocaleResolution). Split path yourself when a catch-all route needs its segments.
All the commerce entries of one read are built in one locale: call paths.list() once per
locale to list them all.
Extends: LocaleResolution
Property | Type | Optional | Description |
|---|---|---|---|
|
| Yes | Id of the record: a UUID for an article or a category, the prefixed id ( |
|
| Yes |
|
|
| Yes | Locale of the text served at this path, such as |
|
| No | Full URL path including leading slash and locale prefix.<br>Ready to use as a route path. Includes category segments in nested mode. |
|
| Yes | BCP 47 locale code the request asked for (e.g. |
|
| No | What the path serves: |
|
| Yes | ISO 8601 datetime of the record's last change, for a sitemap |
Redirect
Interface
The redirect paths.matchRedirect(path) found for one path: a rule set in the admin or an
automatic locale redirect. The SDK lists no redirects in bulk, so check them at request time.
Property | Type | Optional | Description |
|---|---|---|---|
|
| No | Whether to append the original request's query string to the redirect target.<br>When |
|
| No | Source path pattern to match incoming requests against.<br>Always starts with |
|
| No | HTTP status to answer with: |
|
| No | Destination path or full URL to redirect to.<br>Can be a relative path (starts with |