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:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user