Skip to content

docs: stop recommending wildcard routes as error pages - #6617

Merged
peholmst merged 1 commit into
v25.3from
claude/v25.3-wildcard-flow-views
Nov 10, 2026
Merged

peholmst merged 1 commit into
v25.3from
claude/v25.3-wildcard-flow-views

Conversation

@peholmst

Copy link
Copy Markdown
Member

Two pages on v25.3 advise using a React wildcard view as a "page not found" page. In an application with Flow views, this hides the Flow views: a wildcard view (views/{...wildcard}.tsx, or a view with route: '*' in its ViewConfig) takes the place of the Flow fallback for every path under its directory. The Flow views under that directory then show the wildcard view instead, for a direct page load, a <NavLink> and navigate(), with or without a root @layout.tsx. A custom Flow not-found view works as the replacement.

Changes:

  • Building Apps › React › Navigate, Wildcard Parameters: brings over the section from docs: add the React Views reference with routing and Flow interop #6616 on main. The example is now a document browser at views/docs/{...path}.tsx, followed by a paragraph that warns about the Flow views and links to Custom Exception Handlers.
  • Hilla › Guides › Routing, Adding an Error Page: replaces the route: '*' example with a pointer to a custom Flow not-found view, and a warning about wildcard routes in applications with Flow views. The heading and its anchor are unchanged; nothing else links to it.
  • Escapes the ellipsis in the wildcard file names ({pass:[...]name}). Asciidoctor rendered it as an ellipsis character in inline code and in the block title, as the published page shows today. The block title is now monospace, which also keeps Vale's ellipsis rule from flagging it.

The behavior was confirmed in a running 25.4.0-alpha5 application while working on #6616.

main gets this fix through #6616, so this pull request is not for cherry-picking to main.

Checks: Vale reports nothing on the changed lines, the redirect check passes against v25.3, and the new link's anchor exists on the published page.

🤖 Generated with Claude Code

A React wildcard view, `views/{...wildcard}.tsx` or a view with
`route: '*'` in its ViewConfig, takes the place of the Flow fallback for
every path under its directory. Flow views under that directory then
show the wildcard view instead, so a wildcard directly in `views` hides
every Flow view of a hybrid application.

The Wildcard Parameters section of the React navigation guide now uses
a document browser as its example and warns about Flow views, as on
main. The Hilla routing guide no longer shows a `route: '*'` error page
and points to a custom Flow not-found view instead.

Escape the ellipsis in the wildcard file names, which Asciidoctor
rendered as an ellipsis character outside source blocks.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions github-actions Bot added the target/main cherry pick to main branch label Nov 10, 2026
@github-actions

Copy link
Copy Markdown
Contributor

This pull request targets v25.3, a release branch. A change made only there is lost when the next release branch is cut from main. This pull request is therefore labeled target/main: after it's merged, a bot cherry-picks it to main.

If the change applies only to this release, remove the label.

@peholmst peholmst removed the target/main cherry pick to main branch label Nov 10, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Preview Deployment

This PR has been deployed for preview.

URL: https://docs-preview-pr-6617.fly.dev

Changed pages

Added content is highlighted in green; removed content is marked in red on each page.

Base branch changes

Not marked in the preview: v25.3 is a maintenance branch, not a stacked pull request branch. Everything highlighted in the preview belongs to this PR.

Built from 7898a64

@peholmst
peholmst merged commit 9b621ca into v25.3 Nov 10, 2026
10 checks passed
@peholmst
peholmst deleted the claude/v25.3-wildcard-flow-views branch November 10, 2026 12:15
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.

1 participant