Skip to content

Commit

Permalink
Merge pull request #252 from codern-app/fix/canonical-url
Browse files Browse the repository at this point in the history
fix: canonical url
  • Loading branch information
armancodv authored Mar 29, 2024
2 parents 15566ab + d1c442b commit c15cd8a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions features/seo/head.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ export const HeadComponent: React.FC<Props> = ({ title, description, url, imageU
}, [title, profile?.title]);

const overrideUrl = useMemo(() => {
return url || router.basePath + router.pathname;
}, [url, router.basePath, router.pathname]);
return url || config.siteUrl + router.pathname;
}, [url, router.pathname]);

const overrideDescription = useMemo(() => {
return description || profile?.description;
Expand Down

0 comments on commit c15cd8a

Please sign in to comment.