diff --git a/i18n_taxonomy/i18n_taxonomy.module b/i18n_taxonomy/i18n_taxonomy.module index 4d9fbf1..ae4fb97 100644 --- a/i18n_taxonomy/i18n_taxonomy.module +++ b/i18n_taxonomy/i18n_taxonomy.module @@ -118,10 +118,12 @@ function i18n_taxonomy_admin_paths() { * Take over the taxonomy pages. */ function i18n_taxonomy_menu_alter(&$items) { - // If ctool's page manager is active for the path skip this modules override. - // Also views module takes over this page so this won't work if views enabled. - // Skip when taxonomy_display enabled, see http://drupal.org/node/1280194 - if (!module_exists('taxonomy_display')) { + // When views overrides this path, the item for this path at this point is + // NULL since core 1.28.0 because of changed hook order. + // The isset check does no harm with prior Backdrop versions, but not checking + // it would break all term pages as of core 1.28. + // @see https://github.com/backdrop-contrib/i18n/issues/134 + if (!module_exists('taxonomy_display') && isset($items['taxonomy/term/%taxonomy_term'])) { // Taxonomy term page. Localize terms. $items['taxonomy/term/%taxonomy_term']['page callback'] = 'i18n_taxonomy_term_page'; $items['taxonomy/term/%taxonomy_term']['title callback'] = 'i18n_taxonomy_term_name';