Skip to content

Commit

Permalink
fix: bug with landingpage url
Browse files Browse the repository at this point in the history
  • Loading branch information
ah-net committed Jun 20, 2024
1 parent 69e0406 commit 8bc79ac
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Plugin/PathSlugStrategyPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,11 @@ public function afterGetCategoryFilterSelectUrl(
*/
public function afterGetOriginalUrl(PathSlugStrategy $original, string $result, MagentoHttpRequest $request): string
{
return $result;
$landingPage = $this->landingPageContext->getLandingPage();
if ($landingPage === null) {
return $result;
}

return $this->urlFactory->create()->addBaseUrl($landingPage->getUrlPath());
}
}

0 comments on commit 8bc79ac

Please sign in to comment.