diff --git a/metatag.module b/metatag.module index 1b0e243..d9a8013 100644 --- a/metatag.module +++ b/metatag.module @@ -704,7 +704,16 @@ function metatag_field_extra_fields() { * @return boolean * TRUE or FALSE if the entity should have a form for or process meta tags. */ -function metatag_entity_has_metatags($entity_type, $entity) { +function metatag_entity_has_metatags(&$entity_type, &$entity) { + + // Temporary fix until the following issue is implemented: http://drupal.org/node/1700160. + // Check if we are viewing a term page. + if (arg(0) == 'taxonomy' && arg(1) == 'term' && is_numeric(arg(2))) { + // Override the entity. + $entity = taxonomy_term_load(arg(2)); + $entity_type = 'taxonomy_term'; + } + // If an entity has custom meta tags assigned, then we should return TRUE. if (!empty($entity->metatags)) { return TRUE;