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

Commit 13d4dfd

Browse files
committed
Fix fallback seo
1 parent 4ecd38c commit 13d4dfd

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

api/wordpress/_global/getSettingsCustomPage.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,11 @@ export default async function getSettingsCustomPage(page) {
2828
data.post = {
2929
...data?.post,
3030
seo: {
31-
title: customPageQuery[page]?.title ?? '',
32-
description: customPageQuery[page]?.description ?? ''
31+
title: `${customPageQuery[page]?.title ?? ''} - ${
32+
data.defaultSeo?.openGraph?.siteName ?? ''
33+
}`,
34+
description: customPageQuery[page]?.description ?? '',
35+
canonical: `${data.defaultSeo?.openGraph?.url ?? ''}/${page}`
3336
}
3437
}
3538
}

0 commit comments

Comments
 (0)