Skip to content

Commit 5535218

Browse files
committed
MCLOUD-13500 - Unable to open backend with 2.4.8-beta134 in cloud instance
Fix regression issue
1 parent 7498e5c commit 5535218

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

app/code/Magento/Backend/App/Area/FrontNameResolver.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,10 +128,11 @@ public function isHostBackend()
128128
if ($this->scopeConfig->getValue(self::XML_PATH_USE_CUSTOM_ADMIN_URL, ScopeInterface::SCOPE_STORE)) {
129129
$backendUrl = $this->scopeConfig->getValue(self::XML_PATH_CUSTOM_ADMIN_URL, ScopeInterface::SCOPE_STORE);
130130
} else {
131-
$backendUrl = $this->config->getValue(Store::XML_PATH_UNSECURE_BASE_URL);
131+
$xmlPath = $this->request->isSecure() ? Store::XML_PATH_SECURE_BASE_URL : Store::XML_PATH_UNSECURE_BASE_URL;
132+
$backendUrl = $this->config->getValue($xmlPath);
132133
if ($backendUrl === null) {
133134
$backendUrl = $this->scopeConfig->getValue(
134-
Store::XML_PATH_UNSECURE_BASE_URL,
135+
$xmlPath,
135136
ScopeInterface::SCOPE_STORE
136137
);
137138
}

0 commit comments

Comments
 (0)