The navigation prevention inside the preview doesn't always work for code components

Created on 20 March 2025, about 1 month ago

Overview

When using the preview mode with code components, the navigation prevention mechanism doesn't always work as expected.

Steps to reproduce:

  1. Open the preview that contains one or more code components.
  2. Attempt to navigate away (e.g., by clicking a link inside a code component).
  3. Observe that in some instances, the navigation prevention doesn't, navigating to a different page inside the preview.

Proposed resolution

User interface changes

🐛 Bug report
Status

Active

Version

0.0

Component

Page builder

Created by

🇫🇮Finland lauriii Finland

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

Merge Requests

Comments & Activities

  • Issue created by @lauriii
  • 🇺🇸United States sea2709 Texas

    Assign this one to myself. I think the issue is the preview area is rendered by an iframe, and when users click on links in iframe, by default, it refreshes the page, I'm thinking about adding a base tag in the preview iframe will make the link to be opened on the parent window.

  • Pipeline finished with Failed
    17 days ago
    Total: 1679s
    #472133
  • 🇺🇸United States sea2709 Texas

    @lauriii: When you have a chance, can you review my MR? I see that the cypress E2E job is fail because of 2 failed test cases in component-operations.cy.js. I don't think it's related to my changes.

Production build 0.71.5 2024