Skip to content

fix: keep route patterns out of dynamic shells - #699

Merged
Espoir-Loem merged 3 commits into
developfrom
fix/696-shell-pathname
Nov 28, 2026
Merged

Espoir-Loem merged 3 commits into
developfrom
fix/696-shell-pathname

Conversation

@Espoir-Loem

Copy link
Copy Markdown
Member

A dynamic client-route shell was rendered with the route pattern as its pathname. A layout built a link from usePathname() and shipped /en/{lang}/about in the first HTML.

The build cannot know the path a shell will answer, so it now renders the layouts with /. The served link starts at /en/ and carries no placeholder.

Added a Node scenario that renders a [lang] route through writeDocuments() and a pytest assertion that the shell has no { or } in an href. It failed with /en/{lang}/about before the fix.

All local gates pass: 20532 tests, 94.25 percent coverage, lint, format, mypy, structure, COM check, diff coverage and bandit.

Closes #696

@github-actions github-actions Bot added the area:frontend Client router, adapters and Vite integration label Nov 28, 2026
@Espoir-Loem
Espoir-Loem merged commit 9e39f4a into develop Nov 28, 2026
27 checks passed
@Espoir-Loem
Espoir-Loem deleted the fix/696-shell-pathname branch November 28, 2026 16:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:frontend Client router, adapters and Vite integration

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant