Open this example in the interactive library
Source code
// app/workshop/page.tsx
import type { Metadata } from "next";
export const metadata: Metadata = {
title: "Workshop schedule",
alternates: { canonical: "https://example.com/workshop" },
};
export default function CanonicalWorkshopURL() {
return (
<main>
<h1>Workshop schedule</h1>
<time dateTime="2027-06-12">June 12</time>
</main>
);
}
