Skip to content

Commit 515eb5e

Browse files
author
Oleksii Korshenko
committed
MAGETWO-70591: magento/magento2:#6175 Fixed Unable to generate unsecure URL if current URL is secure #10188
- Merge Pull Request #10188 from arshadpkm/magento2:issue-6175 - Merged commits: 1. e1bc624 2. 2e6a202 3. 839ea2f
2 parents 160b9db + 839ea2f commit 515eb5e

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
@@ -362,6 +362,9 @@ protected function _getType()
362362
protected function _isSecure()
363363
{
364364
if ($this->_request->isSecure()) {
365+
if($this->getRouteParamsResolver()->hasData('secure')){
366+
return (bool) $this->getRouteParamsResolver()->getData('secure');
367+
}
365368
return true;
366369
}
367370

0 commit comments

Comments
 (0)