// Removed useless link to the current page in the breadcrumb
This commit is contained in:
1 parent
3b677092bf
commit
c982d08b68
1 file changed
+3
-2
@@ -369,8 +369,9 @@ class AdminControllerCore extends Controller
|
|||||||
if (!empty($prev) && $prev == $tab['name'])
|
if (!empty($prev) && $prev == $tab['name'])
|
||||||
array_pop($this->breadcrumbs);
|
array_pop($this->breadcrumbs);
|
||||||
$prev = $tab['name'];
|
$prev = $tab['name'];
|
||||||
if ($tab['id_parent'] != 0)
|
|
||||||
$this->breadcrumbs[] = '<a href="'.Tools::htmlentitiesUTF8($this->context->link->getAdminLink($tab['class_name'])).'">'.$tab['name'].'</a>';
|
if ($tab['id_parent'] != 0 && ($link = __PS_BASE_URI__.basename(_PS_ADMIN_DIR_ ).'/'.$this->context->link->getAdminLink($tab['class_name'])) != $_SERVER['REQUEST_URI'])
|
||||||
|
$this->breadcrumbs[] = '<a href="'.Tools::htmlentitiesUTF8($link).'">'.$tab['name'].'</a>';
|
||||||
else
|
else
|
||||||
$this->breadcrumbs[] = $tab['name'];
|
$this->breadcrumbs[] = $tab['name'];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user