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()
128
128
if ($ this ->scopeConfig ->getValue (self ::XML_PATH_USE_CUSTOM_ADMIN_URL , ScopeInterface::SCOPE_STORE )) {
129
129
$ backendUrl = $ this ->scopeConfig ->getValue (self ::XML_PATH_CUSTOM_ADMIN_URL , ScopeInterface::SCOPE_STORE );
130
130
} 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 );
132
133
if ($ backendUrl === null ) {
133
134
$ backendUrl = $ this ->scopeConfig ->getValue (
134
- Store:: XML_PATH_UNSECURE_BASE_URL ,
135
+ $ xmlPath ,
135
136
ScopeInterface::SCOPE_STORE
136
137
);
137
138
}
You can’t perform that action at this time.
0 commit comments