mirror of
https://github.com/khairul169/code-share.git
synced 2026-10-24 11:53:58 +07:00
fix: wrong canonical url
This commit is contained in:
+1
-1
@@ -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 ||
|
||||||
|
|||||||
Reference in New Issue
Block a user