File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
app/code/Magento/Backend/App/Area Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments