Skip to content

Commit 90baa79

Browse files
committed
MC-40538: When entering example.com/0 into browser the homepage is shown (example.com)
1 parent 800acfa commit 90baa79

File tree

2 files changed

+155
-169
lines changed

2 files changed

+155
-169
lines changed

lib/internal/Magento/Framework/App/Router/Base.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ protected function parseRequest(\Magento\Framework\App\RequestInterface $request
179179

180180
$path = trim($request->getPathInfo(), '/');
181181

182-
$params = explode('/', $path ? $path : $this->pathConfig->getDefaultPath());
182+
$params = explode('/', strlen($path) ? $path : $this->pathConfig->getDefaultPath());
183183
foreach ($this->_requiredParams as $paramName) {
184184
$output[$paramName] = array_shift($params);
185185
}

0 commit comments

Comments
 (0)