diff --git a/CHANGELOG.md b/CHANGELOG.md index 1527b4d..67a39aa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,7 @@ CHANGELOG for Shopware PWA =================== -### Unreleased +### 0.2.1 **Added** diff --git a/src/Pwa/PageResult/Navigation/NavigationPageResultHydrator.php b/src/Pwa/PageResult/Navigation/NavigationPageResultHydrator.php index b048feb..4ab4b80 100644 --- a/src/Pwa/PageResult/Navigation/NavigationPageResultHydrator.php +++ b/src/Pwa/PageResult/Navigation/NavigationPageResultHydrator.php @@ -89,7 +89,7 @@ private function getCanonicalUrls(array $categoryIds, SalesChannelContext $conte $criteria->addFilter(new EqualsFilter('routeName', PageController::NAVIGATION_PAGE_ROUTE)); $criteria->addFilter(new EqualsFilter('isCanonical', true)); $criteria->addFilter(new EqualsAnyFilter('foreignKey', $categoryIds)); - $criteria->addFilter(new EqualsFilter('salesChannelId', $context->getSalesChannelId())); + $criteria->addFilter(new EqualsFilter('salesChannelId', $context->getSalesChannel()->getId())); $criteria->addFilter(new EqualsFilter('languageId', $context->getContext()->getLanguageId())); $result = $this->seoUrlRepository->search($criteria, $context->getContext());