mirror of
https://github.com/khairul169/code-share.git
synced 2025-04-29 17:19:37 +07:00
fix: wrong canonical url
This commit is contained in:
parent
1d55fd0317
commit
c1e28ac512
@ -9,7 +9,7 @@ export function getPageTitle(pageContext: PageContext) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function getPageMetadata(pageContext: PageContext) {
|
export function getPageMetadata(pageContext: PageContext) {
|
||||||
const canonicalUrl = BASE_URL + pageContext.req.url;
|
const canonicalUrl = BASE_URL + pageContext.req.originalUrl;
|
||||||
const title = getPageTitle(pageContext);
|
const title = getPageTitle(pageContext);
|
||||||
const description =
|
const description =
|
||||||
pageContext.data?.description ||
|
pageContext.data?.description ||
|
||||||
|
Loading…
x
Reference in New Issue
Block a user