Skip to content

Commit c6f2fb0

Browse files
author
Maxim Medinskiy
committed
MAGETWO-44723: Errors related to mixed content after redirecting from wishlist to product page when secure URLs for storefront used
1 parent ec5598b commit c6f2fb0

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

app/code/Magento/Review/Block/Form.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,13 @@ public function getProductInfo()
158158
*/
159159
public function getAction()
160160
{
161-
return $this->getUrl('review/product/post', ['id' => $this->getProductId()]);
161+
return $this->getUrl(
162+
'review/product/post',
163+
[
164+
'_secure' => $this->_request->isSecure(),
165+
'id' => $this->getProductId(),
166+
]
167+
);
162168
}
163169

164170
/**

app/code/Magento/Review/Block/Product/Review.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,13 @@ public function getProductId()
6666
*/
6767
public function getProductReviewUrl()
6868
{
69-
return $this->getUrl('review/product/listAjax', ['id' => $this->getProductId()]);
69+
return $this->getUrl(
70+
'review/product/listAjax',
71+
[
72+
'_secure' => $this->_request->isSecure(),
73+
'id' => $this->getProductId(),
74+
]
75+
);
7076
}
7177

7278
/**

0 commit comments

Comments
 (0)