Home

Issue: 910

Generate self-closing tags for meta elements

[issue link]

Upon generating meta tags for Open Graph Protocol, we ran into a situation where some crawler/parsers may be sensitive to the fact that the generated meta tags are not closed. I am working with a LinkedIn tech on this right now as their crawler is picky and wants closed tags (or self-closing tags)

So this is preferred:

<meta data-n-head="true" content="My content" property="og:description" />

Versus what Nuxt generates:

<meta data-n-head="true" content="My content" property="og:description">

Maybe there is a setting somewhere that I’m missing and this isn’t an issue. Let me know. Thx!

This question is available on Nuxt.js community (#c786)