diff --git a/core/modules/toolbar/js/escapeAdmin.js b/core/modules/toolbar/js/escapeAdmin.js
index 30af90bd36cfe24f8c33e2498738daabb7df15b1..2d76991e9dc52259b6dcc59d606e94633e99521c 100644
--- a/core/modules/toolbar/js/escapeAdmin.js
+++ b/core/modules/toolbar/js/escapeAdmin.js
@@ -20,7 +20,7 @@
   }
 
   /**
-   * Replaces the "Home" link with "Back to site" link.
+   * Replaces "Back to site" link url when appropriate.
    *
    * Back to site link points to the last non-administrative page the user
    * visited within the same browser tab.
@@ -33,12 +33,12 @@
   Drupal.behaviors.escapeAdmin = {
     attach() {
       const toolbarEscape = once('escapeAdmin', '[data-toolbar-escape-admin]');
-      if (toolbarEscape.length && pathInfo.currentPathIsAdmin) {
-        if (escapeAdminPath !== null) {
-          $(toolbarEscape).attr('href', escapeAdminPath);
-        } else {
-          toolbarEscape[0].textContent = Drupal.t('Home');
-        }
+      if (
+        toolbarEscape.length &&
+        pathInfo.currentPathIsAdmin &&
+        escapeAdminPath !== null
+      ) {
+        $(toolbarEscape).attr('href', escapeAdminPath);
       }
     },
   };