Skip to content

Commit 4e82153

Browse files
author
Oleksii Korshenko
committed
MAGETWO-70736: Added ability generate unsecure URL if current URL is secure #10244
- Merge Pull Request #10244 from okorshenko/magento2:okorshenko-patch-2 - Merged commits: 1. 9668c3e
2 parents af11309 + 9668c3e commit 4e82153

File tree

1 file changed

+3
-0
lines changed
  • lib/internal/Magento/Framework

1 file changed

+3
-0
lines changed

lib/internal/Magento/Framework/Url.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -389,6 +389,9 @@ protected function _getType()
389389
protected function _isSecure()
390390
{
391391
if ($this->_request->isSecure()) {
392+
if($this->getRouteParamsResolver()->hasData('secure')){
393+
return (bool) $this->getRouteParamsResolver()->getData('secure');
394+
}
392395
return true;
393396
}
394397

0 commit comments

Comments
 (0)