Open lc-guy opened 7 months ago
I tried using the svelte:head component in +page.svelte and then a second one in about/+page.svelte and it works. Maybe that's how it's suposed to be used. On the layout we are suposed to put only elements that are common to all views in the page. In this case the title would not fit this requirement.
link -> stackblitz
I tried using the svelte:head component in +page.svelte and then a second one in about/+page.svelte and it works. Maybe that's how it's suposed to be used. On the layout we are suposed to put only elements that are common to all views in the page. In this case the title would not fit this requirement.
link -> stackblitz
This works but makes it unreasonably hard to put in a default that gets overwritten on a case-by-case basis. One has to put the common head tag in each and every route (and subroute) to make it work.
The solution from https://github.com/sveltejs/kit/issues/1540#issuecomment-2029016082 works well and is easily scalable.
Describe the bug
Also described here
If you put a title tag in a in your root +layout (as a generic handler) and then put additional ones in sub-layouts / sub-pages / ..., the one further down will display for a second and then be overwritten by the parent.
Reproduction
Logs
No response
System Info
Severity
annoyance