Skip to content

Commit c610046

Browse files
author
Oleksandr Karpenko
committed
Merge remote-tracking branch 'origin/MAGETWO-44723' into BUGS
2 parents e0bdd30 + c6f2fb0 commit c610046

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)