Skip to content

Commit 477ec66

Browse files
author
Bohdan Korablov
committed
MAGETWO-56317: [GitHub] -[2.1.0] underscore in site url breaks admin redirect - The page isn't redirecting properly #5809
1 parent b6ea0ff commit 477ec66

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/internal/Magento/Framework/Url/SimpleValidator.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,15 @@ class SimpleValidator
1616
* Set allowed Schemes
1717
*
1818
* @param array $allowedSchemes
19+
* @return $this
1920
*/
2021
public function setAllowedSchemes(array $allowedSchemes)
2122
{
2223
if (!empty($allowedSchemes)) {
2324
$this->allowedSchemes = $allowedSchemes;
2425
}
26+
27+
return $this;
2528
}
2629

2730
/**

0 commit comments

Comments
 (0)