Skip to content

wrong category meta title #10

Description

@yaniv14

blocklayered/blocklayered.php

Lines 3208 to 3226 in fc53434

$category_title = (empty($category->meta_title[$id_lang]) ? $category->name[$id_lang] : $category->meta_title[$id_lang]);
$category_metas = Meta::getMetaTags($id_lang, 'category');
$title = '';
$keywords = '';
if (is_array($filter_block['title_values'])) {
foreach ($filter_block['title_values'] as $key => $val) {
$title .= ' > '.$key.' '.implode('/', $val);
$keywords .= $key.' '.implode('/', $val).', ';
}
}
$title = $category_title.$title;
if (!empty($title)) {
$smarty->assign('meta_title', $title.' - '.Configuration::get('PS_SHOP_NAME'));
} else {
$smarty->assign('meta_title', $category_metas['meta_title']);
}

based on this logic, $category_metas will never be used, and in case Meta:getCategoryMetas is override it will not be considered at all.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions