Error encountered with Open Graph tags on Nuxt.js (production environment?)

I recently incorporated OpenGraph tags into my Nuxt.js application by following the guidelines outlined in their SEO documentation available at https://nuxtjs.org/examples/seo-twitter-og

The tags are being set from a child component using the SocialHead component. Here is the content of this component:

<template>
  <span v-if="false" />
</template>

<script>
export default {
  props: {
    title: {
      type: String,
      default: '',
    },
    description: {
      type: String,
      default: '',
    },
    url: {
      type: String,
      default: '',
    },
    image: {
      type: String,
      default: '/images/hero/brain-og.png',
    },
  },
  head() {
    return {
      title: this.title,
      meta: [
        {
          hid: 'og:title',
          name: 'og:title',
          content: this.title.replace(' - M.academy', ''),
        },
        {
          hid: 'description',
          name: 'description',
          content: this.description,
        },
        // Other meta tags for OpenGraph and Twitter
      ],
    }
  },
}
</script>

After deploying these changes to production, I noticed that the Open Graph preview tools I usually rely on do not seem to detect the tags anymore:

https://i.sstatic.net/LZQhs.png https://i.sstatic.net/fxP03.png

Even though the tags show up when viewing the page source and utilizing tools like , they do not appear when testing with LinkedIn's and Twitter's verification tools.

I have conducted tests using LinkedIn's & Twitter's open graph preview tools available at:

One specific page I tested can be found at

Answer №1

After removing the use of prerender.io, the SEO problem was resolved due to the correct configuration.

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

What is the process to activate the button when the JSON response is true?

Currently, I am in the process of setting up a registration form and here is my HTML code: <div class="tab-pane" id="step1"> <form method="POST" onSubmit="return false;" data-parsley-validate="true" v-on:submit="handelSubmit($event);"> & ...

Having trouble accessing a React component class from a different component class

I just started learning reactjs and javascript. For a simple project, I'm working on creating a login and registration form. The issue I'm facing is that when a user enters their email and password and clicks 'register', instead of movi ...

Variances in errors observed while accessing a website on ports 80 and 5500

I've been developing a chatbot system, and I'm encountering an issue where I receive an error message every time I send a message and expect a response back. What's puzzling is that the error message varies depending on whether I run the si ...

What is the best way to extract parameters from a URL in Vue.js?

I am dealing with URLs structured like this: http:://www.mywebsite.com/myapp?brand=nameOfBrand&user=0123456&type=comm In order to display the logo of the respective brand based on the parameter 'nameOfBrand', for example, if I receive ...

How can a JavaScript code be used to navigate to a different HTML file within the same directory that is stored within a folder?

Here is the sample HTML code: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewpor ...

The Vue component is only receiving the initial parameter specified in the props

I am encountering a peculiar issue that I cannot seem to understand. Within my Laravel application, I am utilizing Vuejs 3. Specifically, I have developed a component named "MyComponent" which expects two numeric parameters via the use of props. Strangely, ...

NodeJS API Language Configuration

I'm currently working on integrating the DuckDuckGo Instant Answer Api into my NodeJS application. To do so, I am making a data request from the API using Node Request. var request = require('request'); request('http://api.duckduckgo.c ...

How to determine the number of characters in an emoji?

When a new user signs up on my page, I need to validate the name. One important check is ensuring that the character limit does not exceed 100. However, validating names becomes tricky when dealing with emojis like ...

How can you effectively transfer arguments from one component to another using router.push() in Vue.js?

I need help with implementing a feature where upon clicking the edit button in a row, all the details from that particular row should be passed to a form component. I want to populate the form fields with default values from the parameters provided. Can ...

Encountering an issue while creating a controller in AdonisJS5

Whenever I attempt to execute the command node ace make:controller User an error is shown as follows Cannot locate module './commands/Make\Controller' Require stack: /Users/abiliocoelho/Desktop/socket/node_modules/@adonisjs/assembler/buil ...

Utilizing the validator in Vue with the setup script, TypeScript, and the composition API

While working on some code from a tutorial, I came across the challenge of implementing a validator in a similar fashion to the example provided. My task involves utilizing the script setup, typescript, and the composition API. props: { image: { ...

AngularJS controller handling checked checkboxes values

There is a multiselect dropdown in an application where I can select multiple values. Initially, I selected 4 names from the list and stored them in scope.names = [1,2,4,5]. However, when I try to change the selection during On change event to only 3 and 4 ...

Why isn't Google Map showing up in my HTML <div> section?

I am currently working on a web page that consists of two containers. The mainmapdiv container covers the entire page, while the mainhomediv container is positioned on top of the mainmapdiv. My goal is to hide the mainhomediv container and show a Google Ma ...

ways to display a chosen option in a dropdown menu

Below is the code snippet I am currently using, which involves JQuery and Bootstrap 4: $('.dropdown-menu li').on('click', function() { var selectedValue = $(this).text(); $('.dropdown-select').text(selectedValue); }); & ...

Steps for performing position by position sorting within an array of arrays of numbers using the Lodash library

My task involves sorting an array of strings: ['1.2.3', '1.5.2', '1.23', '1.20.31'] I am looking for a way to sort the array by splitting each string separated by dots, such as 1.2.3 into ['1','2&apo ...

``Is there a way to retrieve the file path from an input field without having to submit the form

Currently, I am looking for a way to allow the user to select a file and then store the path location in a JavaScript string. After validation, I plan to make an AJAX call to the server using PHP to upload the file without submitting the form directly. Thi ...

Tips for adjusting line placement on a leaflet map

My leaflet map displays two lines, but sometimes they appear identical, causing the map to show only one line due to overlap. To address this issue, I am attempting to shift one of the lines slightly so that both are visible on the map. One method I cons ...

React: How to retrieve values from a dynamic dropdown menu

For my React project, I have integrated ant design components. Currently, I am working on adding dynamic select functionality and retrieving the selected values. I have successfully implemented dynamic dropdown selection. However, I am facing an issue wi ...

How can I retrieve a specific key from a nested array while using ng-repeat to iterate through it

I have successfully created a code snippet that retrieves JSON data and displays it in HTML using AngularJS. <div class="activity" ng-app="stream" ng-controller="streamCtrl"> <ul ng-repeat="x in myData"> <p class="au ...

My Vue js Application is Having Issues with the Bootstrap Navbar Display

I'm encountering some issues while trying to integrate a bootstrap navbar into my Vue js application. Any assistance would be greatly appreciated. Thank you! Even after copying the navbar code from Bootstrap into my App.vue file, it doesn't rend ...