Skip to content

fix(nx-loc-url-details): calculate and use correct editor path in preflight edit links - #634

Draft
shsteimer wants to merge 2 commits into
mainfrom
pfedit
Draft

fix(nx-loc-url-details): calculate and use correct editor path in preflight edit links#634
shsteimer wants to merge 2 commits into
mainfrom
pfedit

Conversation

@shsteimer

@shsteimer shsteimer commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

WIP: since this makes getEditPath async, and there is also a very similar function in https://github.com/adobe/da-live/blob/main/blocks/browse/shared.js, sorta feels like we should make this a single global util, and/or pre-load the config so that function need not be async.

...To be Continued...

Please always provide the GitHub issue(s) your PR is for, as well as test URLs where your change can be observed (before and after):

Fix #

Test URLs:

@aem-code-sync

aem-code-sync Bot commented Aug 3, 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

…add test coverage

getEditPath became async to resolve the correct editor route, which left the
Edit link briefly pointing at an empty href before it resolved. Remove the
href/target until ready and dim the link instead. Also switch the internal
getEditorRoute helper to destructured params to match sibling utils, and add
test coverage for the EW-flag/editor.path route resolution logic.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
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.

1 participant