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