diff --git a/components/PageTitle/PageTitle.tsx b/components/PageTitle/PageTitle.tsx index f6ea11e5..c162b37b 100644 --- a/components/PageTitle/PageTitle.tsx +++ b/components/PageTitle/PageTitle.tsx @@ -1,6 +1,7 @@ import { useRouter } from "next/router"; import Link from "next/link"; import classNames from "classnames"; +import { baseUrl } from "../../lib/config"; import type { ReactNode } from "react"; import styles from "./PageTitle.module.css"; @@ -12,10 +13,11 @@ type Props = { const PageTitle = ({ children, className }: Props) => { const router = useRouter(); + const canonical = `${baseUrl}${router.pathname}/`; return (