@decocms/start 1.6.1 → 1.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/cms/resolve.ts +4 -0
package/package.json
CHANGED
package/src/cms/resolve.ts
CHANGED
|
@@ -1506,7 +1506,11 @@ export async function resolveDeferredSection(
|
|
|
1506
1506
|
ensureInitialized();
|
|
1507
1507
|
|
|
1508
1508
|
const ctx: MatcherContext = { ...matcherCtx, path: pagePath };
|
|
1509
|
+
// Recover routeParams from the page match so nested `requestToParam`
|
|
1510
|
+
// resolvers (e.g. `:slug` on PDPs) return the right value.
|
|
1511
|
+
const match = findPageByPath(pagePath);
|
|
1509
1512
|
const rctx: ResolveContext = {
|
|
1513
|
+
routeParams: match?.params,
|
|
1510
1514
|
matcherCtx: ctx,
|
|
1511
1515
|
memo: new Map(),
|
|
1512
1516
|
depth: 0,
|