diff --git a/app/code/Magento/Review/Block/Form.php b/app/code/Magento/Review/Block/Form.php index 2bcc859bdd4f7f557c630d186297a5bdf8a2f185..61183ec7ceb223bff316bad8e4da73b581a2d979 100644 --- a/app/code/Magento/Review/Block/Form.php +++ b/app/code/Magento/Review/Block/Form.php @@ -158,7 +158,13 @@ class Form extends \Magento\Framework\View\Element\Template */ public function getAction() { - return $this->getUrl('review/product/post', ['id' => $this->getProductId()]); + return $this->getUrl( + 'review/product/post', + [ + '_secure' => $this->_request->isSecure(), + 'id' => $this->getProductId(), + ] + ); } /** diff --git a/app/code/Magento/Review/Block/Product/Review.php b/app/code/Magento/Review/Block/Product/Review.php index 02764dc5123f1f59535e6865bb9024a361f9d635..b6d03c885d6462d2811e68774e2fa402a67f628d 100644 --- a/app/code/Magento/Review/Block/Product/Review.php +++ b/app/code/Magento/Review/Block/Product/Review.php @@ -66,7 +66,13 @@ class Review extends Template implements IdentityInterface */ public function getProductReviewUrl() { - return $this->getUrl('review/product/listAjax', ['id' => $this->getProductId()]); + return $this->getUrl( + 'review/product/listAjax', + [ + '_secure' => $this->_request->isSecure(), + 'id' => $this->getProductId(), + ] + ); } /**