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

Commit 536e03a

Browse files
committed
Fix blog meta link
1 parent 6453415 commit 536e03a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

api/wordpress/_global/getPostTypeArchive.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,12 @@ export default async function getPostTypeArchive(
140140
response.post = {
141141
seo:
142142
'post' === postType && homepageSettings?.postsPage?.seo
143-
? homepageSettings.postsPage.seo
143+
? {
144+
...homepageSettings.postsPage.seo,
145+
canonical: `${response.defaultSeo?.openGraph?.url ?? ''}/${
146+
archiveSeo?.[postType]?.route
147+
}`
148+
}
144149
: {
145150
title: `${archiveSeo?.[postType]?.title} - ${
146151
response.defaultSeo?.openGraph?.siteName ?? ''

0 commit comments

Comments
 (0)