Skip to content

docs: open the same page on v2.wails.io from the 404 page - #6366

Merged
leaanthony merged 2 commits into
masterfrom
docs/404-v2-deep-link
Oct 26, 2026
Merged

leaanthony merged 2 commits into
masterfrom
docs/404-v2-deep-link

Conversation

@taliesin-ai

@taliesin-ai taliesin-ai commented Oct 26, 2026 •

Copy link
Copy Markdown
Collaborator

After wails.io switches 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 example wails.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/...
  • the translated /<lang>/docs/...
  • /coc, /community-guide and /showcase
  • the March 2025 security post

Every 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/x and /docs-foo alone.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • New Features
    • Redesigned the 404 page with responsive navigation cards, light and dark theme colors, and landing-page artwork.
    • The Wails v2 link now directs visitors to the matching page on the v2 documentation site for supported documentation routes, preserving query parameters and URL fragments. Other pages continue to link to the Wails v2 introduction.

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]>
@coderabbitai

coderabbitai Bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Caution

Review failed

The pull request is closed.

No actionable comments were generated in the recent review.

Recent review info
Run configuration
Commits

Reviewing files that changed from the base of the PR and between 0a0e703 and 6e89a9f.

Files selected for processing: 1
  • docs/mpress/static/404.html

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 6 remain after this review.

Walkthrough

The 404 page now has responsive navigation and separate Wails v2 and v3 documentation cards. For supported paths, its script updates the Wails v2 link to preserve the path, query, and fragment on v2.wails.io. Other paths retain the default link.

Changes

Wails 404 page

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: Not assessed

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

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: Passed 5
Check name Status Explanation
Title check Passed The title clearly and concisely describes the main change: opening the matching v2.wails.io page from the 404 page.
Description check Passed 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 o…
Docstring Coverage Passed 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…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
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.

❤️ Share

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]>
@leaanthony
leaanthony merged commit 6a740e5 into master Oct 26, 2026
35 of 36 checks passed
leaanthony pushed a commit that referenced this pull request Oct 26, 2026
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.

2 participants