Skip to content

Commit

Permalink
Remove redundant localeDomain check
Browse files Browse the repository at this point in the history
  • Loading branch information
hnsr committed Dec 1, 2023
1 parent 7b017f5 commit 2905aae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/next-ui/PageMeta/PageMeta.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export function canonicalize(router: PartialNextRouter, incoming?: Canonical) {
if (localeDomain) {
canonical = localeDomain
} else {
href = localeDomain || addBasePath(addLocale(as, curLocale, router.defaultLocale))
href = addBasePath(addLocale(as, curLocale, router.defaultLocale))

let siteUrl =
storefrontConfig(router.locale)?.canonicalBaseUrl ||
Expand Down

0 comments on commit 2905aae

Please sign in to comment.