Type Alias
The locale this render is being served in, as the route params carry it.
Narrowed here rather than at four call sites, each of which would otherwise
need the same cast from string.
Unprefixed path of the route, e.g. /courses/basic-course.
What this route is called — not what the site is called.
What this route is about — not what the site is about.
The brand, identical in every locale.
Localized alt text for this route's generated sharing image.
OptionalvideoPresent only for a video lesson; drives og:type and og:video:duration.
Everything a route knows about itself that its metadata needs.
Remarks
hrefis the route's path without a locale prefix (/courses/basic-course); the locale set and the default locale come from the routing configuration, so adding or removing a locale needs no per-page edit.There is no
siteUrlfield: the URLs here stay relative and Next absolutizes them against the layout'smetadataBase. Passing the origin down to every route would give two places for it to be wrong.