my product details page has url structure like
url > cat > sub cat > product name
but in breadcrumb i see only home > product name i want to show category and sub category also
breadcrum.phtml
< ?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
/** @var MagentoThemeBlockHtmlBreadcrumbs $block */
/** @var MagentoCatalogViewModelProductBreadcrumbs $viewModel */
$viewModel = $block->getData('viewModel');
?>
layout.xml file
MagentoCatalogViewModelProductBreadcrumbs