-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
<link> and <meta> inside <svelte:head> are duplicated in SSR generated HTML when bind:value is present #7879
Comments
any news here as this is still an issue? is there a workaround? |
Just hit hard with that issue, my website has completely lost all pages in index for google, because of this bug of duplicated metatags (using svelte ^3.55) |
I use this workaround. hooks/server.js
|
This has been an issue for me as well. All the metas except for <title> tag are duplicated. |
For me as well
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
See title and reproduction.
Reproduction
Steps
Create app:
src/routes/+page.svelte
src/lib/Foo.svelte
svelte.config.js
vite.config.js
package.json
Then execute
npm run build && node build
and view the source HTML through "View page source" (not through "Inspect").Expected result
view-source:http://localhost:3000/
contains only one<link rel="canonical">
and only one<meta name="description">
Actual result
view-source:http://localhost:3000/
contains duplicates:Repo
Repo with example for reproduction: https://github.com/mihaon/svelte-issues/tree/6875
Logs
No response
System Info
Severity
annoyance
Additional Information
No response
The text was updated successfully, but these errors were encountered: