Skip to content

Commit 3271d0c

Browse files
author
wellingtonjr3873
committed
fix: canonical url in pdp
1 parent eac3abb commit 3271d0c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vtex/utils/legacy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ export const pageTypesToSeo = (
141141
new URL(
142142
(current.url && current.pageType !== "Collection" &&
143143
current.pageType !== "Brand")
144-
? current.url.replace(regexBadDomain, "")
144+
? `https://${url.host}/` + current.url.replace(regexBadDomain, "")
145145
.toLowerCase()
146146
: url,
147147
url,

0 commit comments

Comments
 (0)