We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8dfe26a commit 8af727dCopy full SHA for 8af727d
app/code/Magento/Store/Model/Store.php
@@ -707,7 +707,8 @@ protected function _updatePathUseRewrites($url)
707
if ($this->_isCustomEntryPoint()) {
708
$indexFileName = 'index.php';
709
} else {
710
- $indexFileName = basename($_SERVER['SCRIPT_FILENAME']);
+ $scriptFilename = $this->_request->getServer('SCRIPT_FILENAME');
711
+ $indexFileName = basename($scriptFilename);
712
}
713
$url .= $indexFileName . '/';
714
0 commit comments