SEO/Head issue tracker
Going to collect and track issues related to SEO/head related functionalities here, with the experimental.strictSeo we may be able to tackle all of them in v10.
I'm trying out the new strictSeo option, but apparently on client side hydration alternate head links are duplicated without nonce (ssr is fine):
- https://github.com/maevsi/vibetype/actions/runs/16014769323/job/45179227116?pr=1998#step:7:3346
- https://github.com/maevsi/vibetype/pull/1998
I guess deduplication doesn't take into account the nonce attribute that's added by nuxt-security, I think.
@dargmuesli
Looks like the added nonce attribute breaks unhead's default deduplication, one of the changes with strictSeo enabled is that we're not setting key attributes (for custom tag deduping) anymore.
I suppose adding back the key attribute or an empty nonce attribute would resolve this duplication, but it would be best if this can be resolved from nuxt-security instead since this probably happens for other modules/projects that set these tags relying on default behavior.
/cc @harlan-zw @Baroshem
@dargmuesli
Could you create an issue in the nuxt security repo so that we can continue from there?
Maybe you already have an idea on how to fix it? I am happy to help with that :)
Done https://github.com/Baroshem/nuxt-security/issues/642
I really am grateful for this amazing feature and I hope it lands in the future.
But I have one gripe with it - so it automatically adds hrefs to our head -
but it adds them without a trailing slash, and I need them to be with a trailing slash . How to do it? I don't know and never found..... so, any idea?