diff --git a/lib/internal/Magento/Framework/Url.php b/lib/internal/Magento/Framework/Url.php index 9b2e6cf2043ea..5a7ab7c1146dd 100644 --- a/lib/internal/Magento/Framework/Url.php +++ b/lib/internal/Magento/Framework/Url.php @@ -362,6 +362,9 @@ protected function _getType() protected function _isSecure() { if ($this->_request->isSecure()) { + if($this->getRouteParamsResolver()->hasData('secure')){ + return (bool) $this->getRouteParamsResolver()->getData('secure'); + } return true; }