Vue-meta: Duplicate tag prevention

Created on 25 Sep 2017  路  2Comments  路  Source: nuxt/vue-meta

If I want a single og:title for example, i cant override it, it creates new one when calling from child component.

Do we have any method (uid) for that? or should i have done it via vuex or global mixin to override it?

Thanks

Most helpful comment

Hey @metekabak

You should definitely check this part of README How metaInfo is Resolved

So in your case, you need to add vmid key ot each property, which should be unique:

Before:

{
  meta: [
    {  property: 'og:title', content: 'Not unique meta tag' }
  ]
}

After:

{
  meta: [
    { vmidL 'og:title', property: 'og:title', content: 'Super duper unique tag' }
  ]
}

More info in README

All 2 comments

Hey @metekabak

You should definitely check this part of README How metaInfo is Resolved

So in your case, you need to add vmid key ot each property, which should be unique:

Before:

{
  meta: [
    {  property: 'og:title', content: 'Not unique meta tag' }
  ]
}

After:

{
  meta: [
    { vmidL 'og:title', property: 'og:title', content: 'Super duper unique tag' }
  ]
}

More info in README

is there any real world case though when having duplicate meta tags is valid at all? the property itself should be the "vmid" by default I think

Was this page helpful?
0 / 5 - 0 ratings

Related issues

hvalcourtSerdy picture hvalcourtSerdy  路  3Comments

hurradieweltgehtunter picture hurradieweltgehtunter  路  4Comments

lwansbrough picture lwansbrough  路  7Comments

nathanchase picture nathanchase  路  3Comments

terazus picture terazus  路  8Comments