diff --git a/docs/live-preview/overview.mdx b/docs/live-preview/overview.mdx index 8b3db8946e2..2e80c2a58e0 100644 --- a/docs/live-preview/overview.mdx +++ b/docs/live-preview/overview.mdx @@ -88,10 +88,10 @@ const config = buildConfig({ // highlight-start url: ({ data, - documentInfo, + collectionConfig, locale }) => `${data.tenant.url}${ // Multi-tenant top-level domain - documentInfo.slug === 'posts' ? `/posts/${data.slug}` : `${data.slug !== 'home' : `/${data.slug}` : ''}` + collectionConfig.slug === 'posts' ? `/posts/${data.slug}` : `${data.slug !== 'home' : `/${data.slug}` : ''}` }${locale ? `?locale=${locale?.code}` : ''}`, // Localization query param collections: ['pages'], },