Closed ohbob closed 6 months ago
Even though the data from the page is appended, when the browser is loading the page, it only takes into account the last tags so it would use those of the page instead of the layout
try facebook and twitter preview and you will see that its not the case, one of them handles them right, the other doesn't. it's a big deal.
Then inside the layout, try getting the page data from there
Then inside the layout, try getting the page data from there
I'm not really following on how i can do that. An example would be appreciated.
Sorry, I'm kinda busy but try this.
Return the SEO data from a load function inside the page.
Then inside layout, Try to access it like this
<script>
import { page } from '$app/stores';
import Head from 'svelte-seo'
</script>
<Head facebook={{$page.data.seo.facebook}}/>
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
I'm yet to look into this issue
Describe the bug Layout seo data doesn't get overwritten by page. It stacks on top, but on e.g facebook, we see the the data from layout, not the page.
To Reproduce Steps to reproduce the behavior:
Expected behavior I would expect that the layout gets overwritten by page Seo Data.
Additional context If this is the intended way, then explain on how you imagine to use the plugin?