Problem
Previewing or publishing a document opens a new tab at the default AEM delivery URL (https://main--{site}--{org}.aem.page/{path}). Some content needs to open on a different host/URL shape (e.g. structured content served by a custom worker), but today the only override is a page-level preview-url / live-url meta that applies app-wide, it can't be scoped to specific paths.
Proposed solution
Add two config keys (like editor.path):
preview.path — used on Preview
live.path — used on Publish
Value format PATH=URL_TEMPLATE, where URL_TEMPLATE may contain ${aemPath}:
preview.path = /{org}/{site}/forms=https://{site}.adobeaem.workers.dev/preview${aemPath}
PATH is prefix-matched against the doc path; longest match wins.
- Precedence: config → existing meta → default AEM URL.
- Non-matching paths are unchanged.
Scope
- da-nx
nx2 only; applies to the /canvas and /form editors.
- The old
/edit editor (da.live) does not honor this — deferred.
Problem
Previewing or publishing a document opens a new tab at the default AEM delivery URL (
https://main--{site}--{org}.aem.page/{path}). Some content needs to open on a different host/URL shape (e.g. structured content served by a custom worker), but today the only override is a page-levelpreview-url/live-urlmeta that applies app-wide, it can't be scoped to specific paths.Proposed solution
Add two config keys (like
editor.path):preview.path— used on Previewlive.path— used on PublishValue format
PATH=URL_TEMPLATE, whereURL_TEMPLATEmay contain${aemPath}:preview.path = /{org}/{site}/forms=https://{site}.adobeaem.workers.dev/preview${aemPath}PATHis prefix-matched against the doc path; longest match wins.Scope
nx2only; applies to the/canvasand/formeditors./editeditor (da.live) does not honor this — deferred.