Skip to content

Generate self-closing tags for meta elements #910

@jscottsf

Description

@jscottsf

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions