Skip to content

Commit 43bbdb5

Browse files
committed
Link logo in web setup wizard to back-end base URL
When you get to the web setup wizard from the Magento back-end it was not possible to get back to the back-end from this page. This commit makes the logo clickable and when you click it you will return the Magento back-end.
1 parent 05f9df7 commit 43bbdb5

File tree

3 files changed

+11
-10
lines changed

3 files changed

+11
-10
lines changed

app/design/adminhtml/Magento/backend/web/app/setup/styles/less/pages/_common.less

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,6 @@
1919
padding-top: @main__indent-top;
2020
}
2121

22-
.menu-wrapper {
23-
.logo-static {
24-
pointer-events: none;
25-
}
26-
}
27-
2822
//
2923
// Header
3024
// _____________________________________________

setup/pub/styles/setup.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

setup/view/magento/setup/navigation/side-menu.phtml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@
66

77
// @codingStandardsIgnoreFile
88

9+
use Magento\Backend\Model\UrlInterface;
10+
use Magento\Framework\App\ObjectManager;
11+
12+
$objectManager = ObjectManager::getInstance();
13+
/** @var Magento\Backend\Model\UrlInterface $backendUrl */
14+
$backendUrl = $objectManager->get(UrlInterface::class);
15+
916
?>
1017
<?php $expressions = []; foreach ( $this->main as $item ): ?>
1118
<?php $expressions[] = '!$state.is(\'' . $item['id'] . '\')';
@@ -20,13 +27,13 @@
2027
ng-show="<?= implode( '&&', $expressions) ?>"
2128
>
2229
<nav class="admin__menu" ng-controller="mainController">
23-
<span
24-
class="logo logo-static"
30+
<a href="<?= $backendUrl->getBaseUrl() . $backendUrl->getAreaFrontName(); ?>"
31+
class="logo"
2532
data-edition="Community Edition">
2633
<img class="logo-img"
2734
src="./pub/images/logo.svg"
2835
alt="Magento Admin Panel">
29-
</span>
36+
</a>
3037
<ul id="nav" role="menubar">
3138
<li class="item-home level-0" ng-class="{_active: $state.current.name === 'root.home'}">
3239
<a href="" ui-sref="root.home">

0 commit comments

Comments
 (0)