Skip to content
Snippets Groups Projects
Commit 57661ff9 authored by Angie Byron's avatar Angie Byron
Browse files

Issue #2195933 by Sam152: 'Back to site' button doesn't work when the user...

Issue #2195933 by Sam152: 'Back to site' button doesn't work when the user originates from the homepage.
parent 02417da6
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
attach: function () { attach: function () {
var $toolbarEscape = $('[data-toolbar-escape-admin]').once('escapeAdmin'); var $toolbarEscape = $('[data-toolbar-escape-admin]').once('escapeAdmin');
if ($toolbarEscape.length) { if ($toolbarEscape.length) {
if (pathInfo.currentPathIsAdmin && escapeAdminPath) { if (pathInfo.currentPathIsAdmin && escapeAdminPath !== null) {
$toolbarEscape.attr('href', Drupal.url(escapeAdminPath)); $toolbarEscape.attr('href', Drupal.url(escapeAdminPath));
$toolbarEscape.closest('.toolbar-tab').removeClass('hidden'); $toolbarEscape.closest('.toolbar-tab').removeClass('hidden');
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment