From deb25ddff218f125cb5f1a4001a20171311f0737 Mon Sep 17 00:00:00 2001 From: Laurynas Date: Fri, 28 Jul 2023 16:11:49 +0300 Subject: [PATCH] added comment --- src/Adapter/LinkAdapter.php | 1 + src/Presenter/Store/Modules/ContextModule.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Adapter/LinkAdapter.php b/src/Adapter/LinkAdapter.php index 1d201f60b..93cca137b 100644 --- a/src/Adapter/LinkAdapter.php +++ b/src/Adapter/LinkAdapter.php @@ -60,6 +60,7 @@ public function getAdminLink($controller, $withToken = true, $sfRouteParams = [] if ((new ShopContext())->isShop17()) { $adminLink = $this->link->getAdminLink($controller, $withToken, $sfRouteParams, $params); // We have problems with links in our zoid application, since some links generated don't have domain they redirect to CDN domain + // Routes that use new symfony router are returned without the domain if (strpos($adminLink, 'http') !== 0) { return \Tools::getShopDomainSsl(true) . $adminLink; } diff --git a/src/Presenter/Store/Modules/ContextModule.php b/src/Presenter/Store/Modules/ContextModule.php index e1fecbdc5..0d1bb4119 100644 --- a/src/Presenter/Store/Modules/ContextModule.php +++ b/src/Presenter/Store/Modules/ContextModule.php @@ -154,7 +154,7 @@ public function present() 'shopsTree' => $this->getShopsTree(), 'faq' => $this->getFaq(), 'language' => $this->psContext->getLanguage(), - 'prestashopCheckoutAjax' => (new LinkAdapter($this->psContext->getLink()))->getAdminLink('AdminAjaxPrestashopCheckout'), + 'prestashopCheckoutAjax' => $this->getGeneratedLink('AdminAjaxPrestashopCheckout'), 'translations' => $this->translations->getTranslations(), 'readmeUrl' => $this->getReadme(), 'cguUrl' => $this->getCgu(),