Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions website/src/theme/Root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import { DEVEX_SESSIONS_ENABLED } from "@site/src/components/MeetupReminderButto

export default function Root({ children }: { children: ReactNode }) {
const { siteConfig } = useDocusaurusContext();
const siteUrl = siteConfig.url;

useEffect(() => {
// Minimal MutationObserver to fix any black text in search dropdown that CSS might miss
Expand Down Expand Up @@ -47,7 +46,10 @@ export default function Root({ children }: { children: ReactNode }) {
<meta property="og:locale" content="en_US" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:site" content="@IntersectMBO" />
<link rel="canonical" href={siteUrl} />
{/* No canonical link here on purpose. Docusaurus emits a per-page
<link rel="canonical"> for every route from siteConfig.url, and a
hard-coded one in Root — as this file used to have — replaces that
with the site root, telling crawlers every page duplicates "/". */}
</Head>
{children}
{DEVEX_SESSIONS_ENABLED ? <MeetupReminderButton /> : null}
Expand Down
Loading