fix: fix canonicalUrl
This commit is contained in:
parent
044af8bf74
commit
28ad92e101
@ -32,7 +32,7 @@ export async function generateMetadata({
|
||||
return constructMetadata({
|
||||
title: t('title'),
|
||||
description: t('description'),
|
||||
canonicalUrl: getUrlWithLocale('/', locale),
|
||||
canonicalUrl: getUrlWithLocale('', locale),
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -34,7 +34,7 @@ export async function generateMetadata({
|
||||
return constructMetadata({
|
||||
title: `${category.name} | ${t('title')}`,
|
||||
description: category.description,
|
||||
canonicalUrl: getUrlWithLocale('/blog/category/${slug}', locale),
|
||||
canonicalUrl: getUrlWithLocale(`/blog/category/${slug}`, locale),
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user