Skip to content

Commit

Permalink
fix(meta): only set og:url when it has been defined through ogHost or…
Browse files Browse the repository at this point in the history
… options (#44)
  • Loading branch information
TheAlexLichter authored and pi0 committed Mar 8, 2018
1 parent f0f7c3f commit 354f818
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/meta/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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})
}

Expand Down

0 comments on commit 354f818

Please sign in to comment.