/**
* @param array<string, mixed> $categoryContent
*/
private function getRedirectLocation(array
$categoryContent, bool
$hasEmotion, ShopContextInterface
$context): ?string
{ if (\
is_string($categoryContent['external'
]) &&
$categoryContent['external'
] !== ''
) { return $categoryContent['external'
];
} if ($this->
isShopsBaseCategoryPage($categoryContent['id'
])) { return $this->
Front()->
ensureRouter()->
assemble(['controller' => 'index'
]);
} $checkRedirect =
($hasEmotion &&
$this->
Request()->
getParam('sPage'
)) || (!
$hasEmotion);
if (!
$checkRedirect || !
$this->config->
get('categoryDetailLink'
)) { return null;
} $criteria =
$this->storeFrontCriteriaFactory->
createListingCriteria($this->
Request(),
$context);
$criteria->
resetFacets()