Commit 57661ff9 authored by webchick's avatar webchick

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
......@@ -29,7 +29,7 @@
attach: function () {
var $toolbarEscape = $('[data-toolbar-escape-admin]').once('escapeAdmin');
if ($toolbarEscape.length) {
if (pathInfo.currentPathIsAdmin && escapeAdminPath) {
if (pathInfo.currentPathIsAdmin && escapeAdminPath !== null) {
$toolbarEscape.attr('href', Drupal.url(escapeAdminPath));
$toolbarEscape.closest('.toolbar-tab').removeClass('hidden');
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment