Skip to content
This repository was archived by the owner on Feb 27, 2024. It is now read-only.

Commit 56f41eb

Browse files
committed
Fix seo title
1 parent c95747f commit 56f41eb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

api/wordpress/_global/getFrontendPage.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@ export default async function getFrontendPage(route) {
4040
// Set route SEO.
4141
return {
4242
seo: {
43-
title: frontendPageSeo?.[route]?.title,
43+
title: `${frontendPageSeo?.[route]?.title} - ${
44+
response.defaultSeo?.openGraph?.siteName ?? ''
45+
}`,
4446
metaDesc: frontendPageSeo?.[route]?.description,
4547
canonical: `${response.defaultSeo?.openGraph?.url ?? ''}/${route}`
4648
}

0 commit comments

Comments
 (0)