Skip to content

Commit

Permalink
added comment
Browse files Browse the repository at this point in the history
  • Loading branch information
L3RAZ committed Jul 28, 2023
1 parent a8d526c commit deb25dd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/Adapter/LinkAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion src/Presenter/Store/Modules/ContextModule.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down

0 comments on commit deb25dd

Please sign in to comment.