Skip to content

website: Add redirect settings#500

Merged
kou merged 1 commit into
enactic:mainfrom
abetomo:add-redirects
May 20, 2026
Merged

website: Add redirect settings#500
kou merged 1 commit into
enactic:mainfrom
abetomo:add-redirects

Conversation

@abetomo
Copy link
Copy Markdown
Contributor

@abetomo abetomo commented May 19, 2026

Redirect pages that are no longer in 2.0 to 1.0.

Plugins to use:
https://docusaurus.io/docs/api/plugins/@docusaurus/plugin-client-redirects

Copilot AI review requested due to automatic review settings May 19, 2026 08:56
@github-actions
Copy link
Copy Markdown

@abetomo
Copy link
Copy Markdown
Contributor Author

abetomo commented May 19, 2026

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds Docusaurus client-side redirects so legacy (now-removed) 2.0 routes correctly land on their 1.0 equivalents, avoiding broken links when navigating older content and external references.

Changes:

  • Add @docusaurus/plugin-client-redirects dependency to the website package.
  • Configure explicit redirects for a few renamed/moved “getting-started” pages.
  • Add createRedirects rules to redirect selected unversioned paths (e.g., /software/...) to versioned 1.0 routes (e.g., /1.0/software/...).

Reviewed changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated 1 comment.

File Description
website/package.json Adds the @docusaurus/plugin-client-redirects dependency needed to build redirects.
website/package-lock.json Locks the newly added redirect plugin and its resolved metadata.
website/docusaurus.config.ts Registers and configures the redirect plugin (static redirects + rule-based redirects from removed v2 paths to v1 paths).
Files not reviewed (1)
  • website/package-lock.json: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +111 to +118
createRedirects(existingPath: string) {
const removedInV2 = [
'/1.0/software',
'/1.0/hardware/assembly-guide',
'/1.0/hardware/bill-of-materials',
'/1.0/hardware/specifications',
'/1.0/hardware/wiring-and-casing-guide',
];
@kou kou merged commit 1453efd into enactic:main May 20, 2026
3 checks passed
@abetomo abetomo deleted the add-redirects branch May 20, 2026 01:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants