Skip to content

Commit 5c3f269

Browse files
committed
MAGETWO-98345: [2.1.0] underscore in site url breaks admin redirect - The page isn't redirecting properly #5809
1 parent b43d868 commit 5c3f269

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

app/code/Magento/Config/Model/Config/Backend/Baseurl.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -231,10 +231,10 @@ public function afterSave()
231231
* @return UrlValidator
232232
*/
233233
private function getUrlValidator()
234-
{
235-
if (!$this->urlValidator) {
236-
$this->urlValidator = ObjectManager::getInstance()->get(UrlValidator::class);
237-
}
234+
{
235+
if (!$this->urlValidator) {
236+
$this->urlValidator = ObjectManager::getInstance()->get(UrlValidator::class);
237+
}
238238
return $this->urlValidator;
239239
}
240240
}

dev/tests/integration/testsuite/Magento/Setup/Controller/UrlCheckTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ class UrlCheckTest extends \PHPUnit_Framework_TestCase
1414
/**
1515
* @var UrlCheck
1616
*/
17-
private $controller;
17+
private $controller;
1818

19-
protected function setUp()
20-
{
19+
protected function setUp()
20+
{
2121
$this->controller = Bootstrap::getObjectManager()->create(UrlCheck::class);
22-
}
22+
}
2323

2424
/**
2525
* @param $requestContent

0 commit comments

Comments
 (0)