From 5dbbca4610afdd21bfd266cc740ba0751425a440 Mon Sep 17 00:00:00 2001 From: Sam Carlton Date: Wed, 25 May 2022 18:26:28 -0500 Subject: [PATCH] Use pageUrlString for meta twitter:url --- helpers/config.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/helpers/config.js b/helpers/config.js index 19306c7..2749549 100644 --- a/helpers/config.js +++ b/helpers/config.js @@ -3,7 +3,6 @@ import fs from 'fs-extra' import nuxtConfig from '~/nuxt.config.js' - export const nuxtHead = nuxtConfig.head export async function getNetlifyConfig () { @@ -143,6 +142,12 @@ export class PageHead { // console.log('this.defaultMeta', this.defaultMeta) return [ ...this.defaultMeta, + + { + 'property': 'twitter:url', + 'content': this.pageUrlString + }, + ...this.meta ] }