Skip to content

Commit

Permalink
fix: canonical (#425)
Browse files Browse the repository at this point in the history
Co-authored-by: guitavano <tavano62@gmail.com>
  • Loading branch information
gabrielMatosBoubee and guitavano authored Feb 27, 2024
1 parent ec00835 commit 9bc0cfd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vtex/utils/legacy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ export const pageTypesToSeo = (
description: current.metaTagDescription!,
canonical: toCanonical(
new URL(
current.url
(current.url && current.pageType !== "Collection")
? current.url.replace(/.+\.vtexcommercestable\.com\.br/, "")
.toLowerCase()
: url,
Expand Down

0 comments on commit 9bc0cfd

Please sign in to comment.