Commit 383521f2 authored by webchick's avatar webchick
Browse files

Issue #2349569 by dmsmidt, valgibson, nod_, 2suns, yoroy, Bojhan, marcvangend:...

Issue #2349569 by dmsmidt, valgibson, nod_, 2suns, yoroy, Bojhan, marcvangend: Fixed 'Back to site' link does not work as expected.
parent 76b8f62c
......@@ -28,11 +28,14 @@
Drupal.behaviors.escapeAdmin = {
attach: function () {
var $toolbarEscape = $('[data-toolbar-escape-admin]').once('escapeAdmin');
if ($toolbarEscape.length) {
if (pathInfo.currentPathIsAdmin && escapeAdminPath !== null) {
if ($toolbarEscape.length && pathInfo.currentPathIsAdmin) {
if (escapeAdminPath !== null) {
$toolbarEscape.attr('href', escapeAdminPath);
$toolbarEscape.closest('.toolbar-tab').removeClass('hidden');
}
else {
$toolbarEscape.text(Drupal.t('Home'));
}
$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