diff --git a/packages/zhead/src/tagDedupeKey.ts b/packages/zhead/src/tagDedupeKey.ts index 82e2722..1dd6d82 100644 --- a/packages/zhead/src/tagDedupeKey.ts +++ b/packages/zhead/src/tagDedupeKey.ts @@ -28,9 +28,12 @@ export function tagDedupeKey(tag: T): string | false { name.push(...['name', 'property', 'http-equiv']) for (const n of name) { // open graph props can have multiple tags with the same property - if (typeof props[n] !== 'undefined' && !ArrayMetaProperties.findIndex(p => !props[n].startsWith(p))) { + if (typeof props[n] !== 'undefined') { + const val = String(props[n]) + if (ArrayMetaProperties.findIndex(p => val.startsWith(p)) !== -1) + return false // for example: meta-name-description - return `${tagName}:${n}:${props[n]}` + return `${tagName}:${n}:${val}` } } return false