Leave preview points to undefined instead of node's edit page

Created on 14 August 2025, about 22 hours ago

Problem/Motivation

When previewing an edited node if you enabled the "Leave preview?" diaolog, press "Back to content editing" button to open a dialog, this dialog has a "Leave Preview" button that points to undefined.

Steps to reproduce

  1. Edit/Create a node
  2. Click on "Preview" button
  3. Once on the preview, click on "Back to content editing" button
  4. With the dialog opened, click on "Leave preview" button

Proposed resolution

On the file node.preview.js, look for the original "Back to content editing" button using the id "edit-backlink", extract the href and set this to the windows.top.location.href

🐛 Bug report
Status

Needs review

Version

10.4

Component

javascript

Created by

🇪🇸Spain jesus_md

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024