Skip to content

fix(quick-edit): open pages on Helix 6 sites - #1080

Draft
benpeter wants to merge 29 commits into
mainfrom
qehlx6
Draft

benpeter wants to merge 29 commits into
mainfrom
qehlx6

Conversation

@benpeter

Copy link
Copy Markdown
Contributor

on Helix 6 sites, check the document on the source bus and use its URL as the collab room name. upload images to the media bus and preview through the Helix 6 API. use the legacy APIs if the upgrade check doesn't confirm Helix 6.

fixes scdemos/demo#180

test URLs (standalone portal, open from a Helix 6 page):

…d preview

red: the portal hardcodes admin.da.live for the document, the room name
and the image upload, and admin.hlx.page for preview, so it can't open
hlx6 (source bus) documents. the lint disables on the two missing
imports go away with the fix.
the standalone portal read the document, named its collab room,
uploaded images and previewed against admin.da.live / admin.hlx.page
only. on hlx6 (source bus) sites the HEAD 404s, so nothing became
editable.

- read org/site from both mountpoint shapes (the sidekick passes the
  source bus url on hlx6 sites)
- resolve the document with getSourceUrl + source.getMetadata and name
  the room with that url, the same one the da-live editors use
- upload images with source.uploadMedia and use the returned url
- preview with aem.preview
- export getSourceUrl from nx2/utils/api.js
red: da-live's prose2aem builds the picture sources from the resolved
img.src (da.live/plugins/media_...) and, in live mode, strips the first
two path segments of any *.da.live image url, so neither the portal's
origin nor the preview origin works. relative refs resolve against the
page like delivered html.
replaces the preview-origin rewrite: da-live's prose2aem strips the
first two path segments of *.da.live image urls in live mode, so the
rewritten src lost its file name. the portal now leaves ./media_ refs
relative in img and source srcset, and the page resolves them like
delivered html. getInstrumentedHTML and render.js are back to main.
@aem-code-sync

aem-code-sync Bot commented Nov 28, 2026 •

Copy link
Copy Markdown

Hello, I'm the AEM Code Sync Bot and I will run some actions to deploy your branch.
In case there are problems, just click the checkbox below to rerun the respective action.

  • Re-sync branch
Commits

This branch was successfully deployed

1 active deployment
qehlx6 — 368d4090 Deployed Nov 28, 2026 by aem-code-sync[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[hlx6] quick edit can't edit pages

1 participant