Repository navigation
docs: open the same page on v2.wails.io from the 404 page - #6366
Conversation
After wails.io moves to v3, old links to v2-only pages (/docs/..., the translated /<lang>/docs/..., /coc, /community-guide, /showcase and the March 2025 security post), including links the v2 CLI prints, land on the v3 404 page. Its v2 button now opens that same path, query and fragment on v2.wails.io. Other missing pages keep the v2 introduction link, and the page still returns HTTP 404. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Caution Review failedThe pull request is closed. No actionable comments were generated in the recent review.
|
| Layer / File(s) | Summary |
|---|---|
Redesign the 404 page docs/mpress/static/404.html |
The page adds themed responsive styling, Docs and Blog navigation, a 404 message, and Wails v2 and v3 documentation cards. |
Map matching paths to Wails v2 docs/mpress/static/404.html |
For supported paths, the script preserves the path, query, and fragment on v2.wails.io and updates the link label. Other paths retain the default introduction link and label. |
Priority:
Estimated code review effort: 2 (Simple) | ~10 minutes
Change: Other
Possibly related issues
- wailsapp/wails#6341 — The issue requests a branded v3 404 page with a link to v2 documentation. This change updates the 404 page and adds path-specific v2 links.
Possibly related PRs
- wailsapp/wails#6364 — Both changes use v2.wails.io for Wails v2 documentation links.
Suggested labels: Documentation, v2, v3
Suggested reviewers: leaanthony
Merge Risk: 
Low · up to abf26
-
The 404 page has a narrow-screen overflow issue and slightly incorrect v2 link wording; both are localized, low-risk fixes.
Pre-merge checks: 
5
-
Full details: Description check
-
Explanation
The description clearly explains the motivation, matching behavior, preserved query and fragment, fallback behavior, 404 behavior, and tested paths. It does not provide an issue number, wails doctor output, platform selections, or completed checklist items, but the core description is complete.
Full details: Docstring Coverage
-
Explanation
No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0 files. (1 skipped: 1 unsupported.)
-
Finishing Touches
-
🧪 Generate unit tests (beta)
-
- Commit to this branch
- Create a new PR
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
A rabbit finds the docs at night
Two cards glow in gentle light
The v2 path keeps its trail
Query and fragment travel without fail
The v3 link waits beside the tale
Comment @coderabbitai help to get the list of available commands.
Use the landing page's Digital Wales background, colours, header and pill buttons (with their icons) in light and dark mode, instead of a plain unstyled page. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…age on v2.wails.io from the 404 page
After
wails.ioswitches to v3, old links to v2-only pages land on the v3 404 page. That covers bookmarks, search results, other projects' READMEs and the URLs the v2 CLI prints (for examplewails.io/docs/guides/windows-installer). Today that page's v2 button always opens the v2 introduction.With this PR, when the missing path is a v2 page, the button opens the same path on
v2.wails.io, keeping the query string and fragment, and its label reads "Open this page in the Wails v2 documentation". A v2 page means:/docs/.../<lang>/docs/.../coc,/community-guideand/showcaseEvery other missing page keeps the existing v2 introduction link. The page still returns HTTP 404, and no redirects are added. The site has no CSP header, so the small inline script is allowed.
Checked: the path matching handles
/docs/guides/windows-installer,/docs,/zh-Hans/docs/introduction,/coc/and/showcase, and leaves/guides/missing/,/blog/missing,/de/guides/xand/docs-fooalone.🤖 Generated with Claude Code
Summary by CodeRabbit