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 d822fc9 commit 7092749Copy full SHA for 7092749
app/code/Magento/Backend/App/Area/FrontNameResolver.php
@@ -107,11 +107,10 @@ public function getFrontName($checkHost = false)
107
if ($checkHost && !$this->isHostBackend()) {
108
return false;
109
}
110
- $isCustomPathUsed = (bool)(string)$this->config->getValue(self::XML_PATH_USE_CUSTOM_ADMIN_PATH);
111
- if ($isCustomPathUsed) {
112
- return (string)$this->config->getValue(self::XML_PATH_CUSTOM_ADMIN_PATH);
113
- }
114
- return $this->defaultFrontName;
+
+ return $this->config->isSetFlag(self::XML_PATH_USE_CUSTOM_ADMIN_PATH)
+ ? (string)$this->config->getValue(self::XML_PATH_CUSTOM_ADMIN_PATH)
+ : $this->defaultFrontName;
115
116
117
/**
0 commit comments