mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-16 15:45:13 +00:00
fix getContentRef
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user