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.
2 parents 4a28abb + 8af727d commit 795a027Copy full SHA for 795a027
app/code/Magento/Store/Model/Store.php
@@ -716,7 +716,8 @@ protected function _updatePathUseRewrites($url)
716
if ($this->_isCustomEntryPoint()) {
717
$indexFileName = 'index.php';
718
} else {
719
- $indexFileName = basename($_SERVER['SCRIPT_FILENAME']);
+ $scriptFilename = $this->_request->getServer('SCRIPT_FILENAME');
720
+ $indexFileName = basename($scriptFilename);
721
}
722
$url .= $indexFileName . '/';
723
0 commit comments