docs(website): redirect old automation-templates URL to automation-blueprints

The Automation Blueprints rebrand (#44470) renamed the guide page from
guides/automation-templates to guides/automation-blueprints, leaving the
old URL 404ing. The site deploys to static hosting, so server-side
redirects aren't available.

Add @docusaurus/plugin-client-redirects (pinned 3.9.2, same as the other
Docusaurus packages) and a redirect entry for the old slug. The plugin
emits a static HTML page at the old path that meta-refresh/JS-redirects
to the new page, preserving query string and hash, with a canonical link
for SEO. Localized routes are handled automatically (zh-Hans verified).
This commit is contained in:
SHL0MS
2026-06-12 09:46:27 -07:00
committed by Teknium
parent 79c3ed3cc9
commit 7d4e60e44a
3 changed files with 43 additions and 0 deletions
+17
View File
@@ -66,6 +66,23 @@ const config: Config = {
],
],
plugins: [
[
'@docusaurus/plugin-client-redirects',
{
// Static-host redirects for renamed doc pages (GitHub Pages can't
// do server-side redirects). Paths are relative to baseUrl (/docs/).
redirects: [
{
// Renamed in #44470 (Automation Blueprints terminology rebrand)
from: '/guides/automation-templates',
to: '/guides/automation-blueprints',
},
],
},
],
],
presets: [
[
'classic',