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 488c103 commit d822fc9Copy full SHA for d822fc9
app/code/Magento/Backend/App/Area/FrontNameResolver.php
@@ -121,8 +121,8 @@ public function getFrontName($checkHost = false)
121
*/
122
public function isHostBackend()
123
{
124
- if ($this->scopeConfig->getValue(self::XML_PATH_USE_CUSTOM_ADMIN_URL, ScopeInterface::SCOPE_STORE)) {
125
- $backendUrl = $this->scopeConfig->getValue(self::XML_PATH_CUSTOM_ADMIN_URL, ScopeInterface::SCOPE_STORE);
+ if ($this->scopeConfig->isSetFlag(self::XML_PATH_USE_CUSTOM_ADMIN_URL)) {
+ $backendUrl = $this->scopeConfig->getValue(self::XML_PATH_CUSTOM_ADMIN_URL);
126
} else {
127
$backendUrl = $this->config->getValue(Store::XML_PATH_UNSECURE_BASE_URL);
128
if ($backendUrl === null) {
0 commit comments