Error after editing a deleted page from navigator

Created on 11 April 2025, 14 days ago

Overview

When a user deletes a page using the navigator, the page is correctly removed from the navigator list. However, the user remains on the deleted page. If any changes are attempted on this deleted page (e.g., updating the title), an error is displayed:

An unexpected error has occurred while rendering preview.

This issue occurs because the system does not redirect the user away from the deleted page, allowing interactions on a non-existent resource, which leads to the error.

Steps to Reproduce:

  1. Create multiple pages in the editor.
  2. Open any one of the pages.
  3. From the navigator, delete the currently open page.
  4. Notice that the page is removed from the navigator, but the editor still shows the now-deleted page.
  5. Attempt to make any changes to the page (e.g., edit the title).
  6. Observe the error message:
    An unexpected error has occurred while rendering preview.

Proposed resolution

User interface changes

🐛 Bug report
Status

Active

Version

0.0

Component

Page builder

Created by

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

Comments & Activities

Production build 0.71.5 2024