docs: fix Accordion route spelling#571
Merged
vishxrad merged 2 commits intoMay 26, 2026
Merged
Conversation
Replaces the 307 stub page with a config-level permanent redirect, and adds the design-system path that was missed in thesysdev#571 but caught in thesysdev#561. Co-authored-by: zqleslie <17967998@qq.com>
vishxrad
approved these changes
May 26, 2026
Contributor
There was a problem hiding this comment.
Pushed 9c6295d on top of this branch, moved the redirect from the stub accordian/page.tsx to a config-level redirect in next.config.mjs, switched it to permanent: true (308 instead of 307, better for SEO/canonical URLs), and added the /docs/design-system/blocks/accordian path as well.
The redirect approach is lifted from @zqleslie's #561 (credited as co-author on the commit). With this and @Lucas-FManager's complete nav fix, both #553 paths are covered. Closing #561 in favor of this PR.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The docs navigation and route naming use the misspelling
accordian, while the component and user-facing concept areAccordion.Root Cause
The typo exists in both docs navigation configs and in the block route folder name. Because navigation IDs and links reuse that misspelled value, users see
Accordianin the sidebar and the generated route also carries the typo.What Changed
accordion/Accordion./components/blocks/accordianto/components/blocks/accordion.Why This Approach
This fixes the visible typo and the route naming, while preserving backwards compatibility for anyone who already has the old URL bookmarked or linked.
Validation
git diff --checkrg "Accordian|accordian" docs/app docs/shared -g '!node_modules'Risk
Low. This is a docs route/navigation correction. The compatibility redirect keeps the old path working.
Closes #553