From ed54233c0a7d5333e280ad3f937a4a79356ef440 Mon Sep 17 00:00:00 2001 From: Abdelrahman Essawy Date: Thu, 11 Jun 2026 09:11:27 +0300 Subject: [PATCH] fix: pin per-page canonical URLs to the /docs subpath Mintlify's auto-canonical resolves the page path against the canonical base origin, dropping the /docs prefix on the rendobar.mintlify.app subdomain. Every subdomain page pointed its canonical at a 404 (e.g. rendobar.com/quickstart instead of rendobar.com/docs/quickstart), so search engines ignore it and the subdomain competes with the real docs in the index. The docs.json seo.metatags.canonical base alone (#19) did not fix this. Pin an explicit canonical in every page's frontmatter and enforce the exact value in validate-frontmatter.mjs so new pages can't regress. scripts/add-canonical.mjs regenerates them. --- authentication.mdx | 1 + cli/authentication.mdx | 1 + cli/ci-cd.mdx | 1 + cli/commands.mdx | 1 + cli/installation.mdx | 1 + cli/overview.mdx | 1 + cli/troubleshooting.mdx | 1 + concepts/credits.mdx | 1 + concepts/job-lifecycle.mdx | 1 + concepts/job-output.mdx | 1 + guides/ffmpeg.mdx | 1 + guides/webhooks.mdx | 1 + job-types/caption-burn.mdx | 1 + job-types/captions-animate.mdx | 1 + job-types/ffmpeg.mdx | 1 + mcp/examples.mdx | 1 + mcp/installation.mdx | 1 + mcp/overview.mdx | 1 + mcp/tools.mdx | 1 + mcp/troubleshooting.mdx | 1 + mcp/web-and-mobile.mdx | 1 + quickstart.mdx | 1 + scripts/add-canonical.mjs | 47 ++++++++++++++++++++++++++++++++ scripts/validate-frontmatter.mjs | 18 ++++++++++++ support/errors.mdx | 1 + support/faq.mdx | 1 + support/limits.mdx | 1 + 27 files changed, 90 insertions(+) create mode 100644 scripts/add-canonical.mjs diff --git a/authentication.mdx b/authentication.mdx index 41d023a..1970328 100644 --- a/authentication.mdx +++ b/authentication.mdx @@ -4,6 +4,7 @@ description: "Authenticate API requests with a Bearer API key. Same keys cover R sidebarTitle: "Authentication" icon: "key" keywords: ["rendobar authentication", "api key", "bearer token", "rb_ key", "mcp oauth", "rest api auth"] +canonical: "https://rendobar.com/docs/authentication" ---