-
Notifications
You must be signed in to change notification settings - Fork 7
Description
Not sure if this is related to #160
I am also using the {{#portal (head)}}{{/portal}} in my head and the changes I am making are in the portal.
I am trying to add:
<script type="application/ld+json">{{seoSchema}}</script>
based on adding schema.org schema json to the head of my page. It is recommended to be in the head, but I also tried the body with the same results.
In SSR, when the variable includes the script tag, everything works, until SSR detaches (which the point of schema, this is fine as its only for SEO). If the script tag is in the stache file and the variable like the above, the variable doesn't get processed in either SSR or after it is detached. And actually completely disappears in the body.
Nothing changes in the head or the body when using data-keep from the first link in this issue other than it stays in the body.
I also tried without using portal, and same difference in the head tag.