Closed andrewarasaki closed 5 months ago
So this isn't a bug, and it isn't really an SEOmatic issue either.
This is really a React question, and specifically how you're using the data provided by SEOmatic to then render tags in your head.
You can either request the raw HTML tags from SEOmatic and then render thos (which is what you appear to be doing), or you can requested the data from SEOmatic as a config array, and pass that to whatever package you're using for SEO metadata in React.
I'm not super familiar with what you're doing, but it seems strange to me that tags would overwrite other tags, it should just be raw HTML you're rendering.
But again, none of this really has to do with SEOmatic itself, so closing the issue.
Describe the bug
We are using Next.js with Craft in headless mode via the Headless SPA API.
The
metaLinkContainer
seems to be causing interference with the proper display of meta information, specifically with the meta description, keywords, and generator. WhenmetaLinkContainer
is added to the head, all of the generated tags disappear.The following is our GraphQL query for posterity, however logging it to the console logs all of the tags properly, so we can confirm the data is pulling through:
Expected behaviour
We expect the metaLinkContainer to be added to the head in addition to the other meta tags.
Versions