Permalink
Browse files

fix(meta): only set og:url when it has been defined through ogHost or…

… options (#44)
  • Loading branch information...
manniL authored and pi0 committed Mar 8, 2018
1 parent f0f7c3f commit 354f818708e91cbabbbe97fdfaceecce90236689
Showing with 1 addition and 1 deletion.
  1. +1 −1 packages/meta/index.js
@@ -157,7 +157,7 @@ function generateMeta (_options) {
if (options.ogHost && options.ogUrl === true) {
options.ogUrl = options.ogHost
}
if (options.ogUrl && !find(this.options.head.meta, 'property', 'og:url') && !find(this.options.head.meta, 'name', 'og:url')) {
if (options.ogUrl && options.ogUrl !== true && !find(this.options.head.meta, 'property', 'og:url') && !find(this.options.head.meta, 'name', 'og:url')) {
this.options.head.meta.push({hid: 'og:url', name: 'og:url', property: 'og:url', content: options.ogUrl})
}

0 comments on commit 354f818

Please sign in to comment.