The mercury-editor-preview iframe doesn't load if Drupal is in a subdirectory

Created on 8 June 2023, about 1 year ago
Updated 19 June 2023, about 1 year ago

Problem/Motivation

If you run Drupal in a subdirectory (e.g., http://example.com/subdirectory), then when you edit a node in Mercury Editor (e.g., http://example.com/subdirectory/node/1/edit/mercury-editor), the main iframe doesn't load, because its src is /mercury-editor-preview but it needs to be /subdirectory/mercury-editor-preview.

Steps to reproduce

Proposed resolution

Change page--node--mercury-editor.html.twig from src="/mercury-editor-preview" to src="{{ url('mercury_editor.preview_node') }}" or similar.

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Fixed

Version

2.1

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States effulgentsia

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

Comments & Activities

Production build 0.69.0 2024