Repository nuxt.js

Problem with htmlAttrs after updating to nuxt 1.4.0

mahmoudmy
25
mahmoudmy
commented 7 months ago

I set htmlAttrs in nuxt.config.js:

head: {
    htmlAttrs: {
      dir: 'rtl'
    },
}

But after updating from [email protected] to nuxt [email protected] , this attribute and lang (nuxt-i18n) doesn't add to <html> on SSR pages. After navigating to other page in client side, the attributes appears.

0
Atinux
20.5k
Atinux
commented 2 months ago

Hi @mahmoudmy

It has been fixed with nuxt-edge and vue-metav1.5.2.

0
silvio-e
0
silvio-e
commented 7 months ago

@mahmoudmy I can't confirm with [email protected] and setting lang manually in nuxt.config.js. Have you tried it without nuxt-i18n?

0
antony
0
antony
commented 2 months ago

Can confirm that this indeed doesn't add anything to the <html> attribute.

0
Atinux
20.5k
Atinux
commented 2 months ago

Hi @mahmoudmy

It has been fixed with nuxt-edge and vue-metav1.5.2.

0
Informations
QuestionResolved
#c2631 - Created 7 months ago