fix getContentRef

This commit is contained in:
Nicolas Dorseuil
2025-06-16 10:54:01 +02:00
parent 82ed911cd8
commit a2fc076acb
2 changed files with 2 additions and 2 deletions
@@ -46,7 +46,7 @@ export function PageBody(props: {
if (!ref) {
return null;
}
if (!options) {
if (options) {
return resolveContentRef(ref, context, options);
}
return props.prefetchedRef.then((prefetched) => prefetched.get(ref) ?? null);
@@ -42,7 +42,7 @@ export async function SitePage(props: SitePageProps) {
notFound();
}
} else if (getPagePath(context.pages, pageTarget.page) !== rawPathname) {
console.log('Redirecting to page path', rawPathname, 'for page', pageTarget.page.id);
//TODO: Don't forget to uncomment the redirect when i'm done
// redirect(
// context.linker.toPathForPage({
// pages: context.pages,