Home

Issue: 2034

Open Graph Facebook meta tags - Server error

[issue link]

Hello,

When I’m testing out the open graph on our new site, it just gives us a generic nuxt server error with no extra information. When I visit the site, all meta tags are visible and correct.

head code:

  head() {
    let product = this.product
    return {
      title: `${product.name} (PC) - localhost`,
      meta: [
        {
          hid: `description`,
          name: 'description',
          content: product.short_description
        },
        {
          hid: `keywords`,
          name: 'keywords',
          keywords: product.name
        },
        {
          hid: `og:title`,
          property: 'og:title',
          content: `${product.name} (PC) - localhost`
        },
        {
          hid: `og:url`,
          property: 'og:url',
          content: 'https://localhost' + this.$route.fullPath
        },
        {
          hid: `og:image`,
          property: 'og:image',
          content: `${this.$store.state.imageUrl}/assets/img/products/header/460x215/${product.product.image_cover}`
        },
        {
          hid: `og:description`,
          property: 'og:description',
          content: product.short_description
        }
      ]
    }
  },
This question is available on Nuxt.js community (#c1805)