-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Closed as not planned
Labels
COMP: qwik-cityTYPE: bugSomething isn't workingSomething isn't workingVERSION: upcoming majorWAITING FOR: userFurther information is requested from the issue / pr openerFurther information is requested from the issue / pr opener
Description
Which component is affected?
Qwik Runtime
Describe the bug
When using Qwik v2 with nested layouts, defining Head with title and description in a deeper layout does not override the values defined in a higher layout. The browser keeps the outer layout’s title/description. This seems to contradict the docs for nested layouts & Head.
https://qwik.dev/docs/pages/#nested-layouts-and-head
The docs imply head content from nearer (deeper) layouts/pages should take precedence when merged.
Expected behavior
On a route rendered by a deeper layout, the title and description from that deeper layout’s should be applied (or at least take precedence over the outer layout’s values).
Reproduction
https://stackblitz.com/edit/github-5yxcyvac-o3sjnsqu?file=src%2Froutes%2Flayout.tsx
Steps to reproduce
No response
System Info
System:
OS: macOS 26.0
CPU: (8) arm64 Apple M2
Memory: 113.97 MB / 16.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 22.18.0
npm: 10.9.3
pnpm: 10.15.0
bun: 1.2.21
Browsers:
Chrome: 139.0.7258.139
Edge: 139.0.3405.111
Safari: 26.0
npmPackages:
@qwik.dev/core: https://pkg.pr.new/QwikDev/qwik/@qwik.dev/core@9b03622 => 2.0.0-beta.7
@qwik.dev/router: https://pkg.pr.new/QwikDev/qwik/@qwik.dev/router@9b03622 => 2.0.0-beta.7
typescript: 5.9.2
vite: 7.1.3Additional Information
No response
Metadata
Metadata
Assignees
Labels
COMP: qwik-cityTYPE: bugSomething isn't workingSomething isn't workingVERSION: upcoming majorWAITING FOR: userFurther information is requested from the issue / pr openerFurther information is requested from the issue / pr opener