-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Open
Description
Which project does this relate to?
Router
Describe the bug
Hi there,
Thank you for your work on this great framework!
I'm using the head attribute of my route in order to set Structured data (LD+JSON). In my use case, I set it from a layout file.
When creating the minimal bug reproducing project, I noticed that it worked at one point and stopped working then: sometimes there were 2 script tags with one empty, and after it was a single empty one.
Your Example Website or App
https://github.com/AlexandreSi/minimal-tanstack-start-project
Steps to Reproduce the Bug or Issue
-
Clone the project
-
Start with
npm run dev -
Navigate to
/about -
Open dev tools and check in the head tag that the script tag is empty
-
If not empty, try refreshing or hot-reloading with a code change
Expected behavior
I was expecting the script tag to look like something like that:
<script type="application/ld+json">{"@context":"https://schema.org","@type":"LocalBusiness","name":"Donut All Day","location":[{"@type":"Place","address":"123 Glazed street","name":"Donut All Day Glazed street","latitude":45,"longitude":5}]}</script>Screenshots or Videos
No response
Platform
- Router / Start Version: Check the package.json (project created with
npx @tanstack/cli createon 2026-02-10) - OS: macOS
- Browser: Chrome
- Browser Version: 144.0.7559.133
- Bundler: vite
- Bundler Version: 7.3.1
Additional context
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels