@monkeyplus/flow 6.0.58 → 6.0.59
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/server/lib/pages.mjs +2 -2
package/package.json
CHANGED
package/server/lib/pages.mjs
CHANGED
|
@@ -383,8 +383,8 @@ export async function resolveBreadcrumbs(pageName, pathname, localeCode, params,
|
|
|
383
383
|
if (!localePage || !localePage.breadcrumb) return [];
|
|
384
384
|
const locale = createLocale(localeCode);
|
|
385
385
|
const ctx = createContext(definition, locale, localePage, pathname, params, dynamic, request);
|
|
386
|
-
const pageContext = await
|
|
387
|
-
const pageHead = await
|
|
386
|
+
const pageContext = localePage.context ? await localePage.context(ctx) : {};
|
|
387
|
+
const pageHead = localePage.head ? await localePage.head(ctx) : localePage.seo ? await localePage.seo(ctx) : {};
|
|
388
388
|
const breadcrumbCtx = {
|
|
389
389
|
...ctx,
|
|
390
390
|
context: pageContext,
|