diff --git a/core/modules/node/node.preview.js b/core/modules/node/node.preview.js index a07c58f9..e1b17a27 100644 --- a/core/modules/node/node.preview.js +++ b/core/modules/node/node.preview.js @@ -46,7 +46,9 @@ { text: Drupal.t('Leave preview'), click() { - window.top.location.href = event.currentTarget.href; + const editBacklink = document.querySelector('#edit-backlink'); + const href = editBacklink.getAttribute('href'); + window.top.location.href = href; }, }, ],