diff --git a/toolbar_edit_page_button.module b/toolbar_edit_page_button.module
index 7e5d0e3..69543d1 100644
--- a/toolbar_edit_page_button.module
+++ b/toolbar_edit_page_button.module
@@ -17,8 +17,8 @@ use Drupal\node\NodeInterface;
 function toolbar_edit_page_button_toolbar() {
   $node = \Drupal::routeMatch()->getParameter('node');
   $permission = \Drupal::currentUser()->hasPermission('access toolbar edit page button');
+  $items = [];
   if ($permission && $node instanceof NodeInterface) {
-    $items = [];
     $nid = $node->id();
     $items['toolbar_edit_page_button'] = [
       '#type' => 'toolbar_item',
@@ -40,6 +40,25 @@ function toolbar_edit_page_button_toolbar() {
         ],
       ],
     ];
-    return $items;
   }
+  else {
+    $items['toolbar_edit_page_button'] = [
+      '#type' => 'toolbar_item',
+      'tab' => [
+        '#type' => 'link',
+        '#title' => t('Edit page'),
+        '#url' => Url::fromRoute('<front>'),
+        '#cache' => [
+          'contexts' => [
+            'url.path',
+          ],
+        ],
+      ],
+      '#wrapper_attributes' => [
+        'class' => ['edit-toolbar-tab', 'visually-hidden'],
+      ],
+    ];
+  }
+
+  return $items;
 }
