i18n icon indicating copy to clipboard operation
i18n copied to clipboard

SEO/Head issue tracker

Open BobbieGoede opened this issue 6 months ago • 5 comments

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.

BobbieGoede avatar May 27 '25 22:05 BobbieGoede

I'm trying out the new strictSeo option, but apparently on client side hydration alternate head links are duplicated without nonce (ssr is fine):

Image

  • 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 avatar Jul 02 '25 02:07 dargmuesli

@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

BobbieGoede avatar Jul 03 '25 21:07 BobbieGoede

@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 :)

Baroshem avatar Jul 09 '25 06:07 Baroshem

Done https://github.com/Baroshem/nuxt-security/issues/642

dargmuesli avatar Jul 24 '25 05:07 dargmuesli

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 -

Image

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?

Nikita0x avatar Aug 12 '25 11:08 Nikita0x