Repository nuxt.js

Problem with htmlAttrs after updating to nuxt 1.4.0

mahmoudmy
25
mahmoudmy
commented 5 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
18.9k
Atinux
commented 11 days ago

Hi @mahmoudmy

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

0
silvio-e
0
silvio-e
commented 5 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 12 days ago

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

0
Atinux
18.9k
Atinux
commented 11 days ago

Hi @mahmoudmy

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

0
Informations
QuestionResolved
#c2631 - Created 5 months ago