I am trying to dynamically set OG:Tags using an API
head() {
this.$axios
.get(`............`)
.then((response) => {
this.og_title = response.data.message.course.course_name;
this.og_description = response.data.message.course.description;
this.og_image = response.data.message.course.img_url;
console.log(this.og_title);
return {
title: this.title,
meta: [
{
property: "og:title",
content: this.og_title,
},
{
property: "og:description",
content: this.og_description,
},
{
property: "og:image",
content: this.og_image,
}
]
};
});
However, despite printing correctly in the console, the tags do not show up when testing on production.