Skip to content

Commit 1dc3234

Browse files
authored
Fix page metadata title (#2348)
1 parent 22dc0d4 commit 1dc3234

File tree

1 file changed

+2
-1
lines changed
  • src/app/(space)/(content)/[[...pathname]]

1 file changed

+2
-1
lines changed

src/app/(space)/(content)/[[...pathname]]/page.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import { PageHrefContext, absoluteHref, pageHref } from '@/lib/links';
99
import { getPagePath } from '@/lib/pages';
1010
import { ContentRefContext } from '@/lib/references';
1111
import { tcls } from '@/lib/tailwind';
12+
import { getContentTitle } from '@/lib/utils';
1213

1314
import { PageClientLayout } from './PageClientLayout';
1415
import { PagePathParams, fetchPageData, getPathnameParam, normalizePathname } from '../../fetch';
@@ -110,7 +111,7 @@ export async function generateMetadata({ params }: { params: PagePathParams }):
110111
}
111112

112113
return {
113-
title: [page.title, customization.title ?? space.title, parent?.title]
114+
title: [page.title, getContentTitle(space, customization, parent)]
114115
.filter(Boolean)
115116
.join(' | '),
116117
description: page.description ?? '',

0 commit comments

Comments
 (0)