Skip to content

fix: add fallback for path sanitization logic#936

Merged
chrischrischris merged 1 commit into
mainfrom
lib-fall
May 13, 2026
Merged

fix: add fallback for path sanitization logic#936
chrischrischris merged 1 commit into
mainfrom
lib-fall

Conversation

@chrischrischris
Copy link
Copy Markdown
Contributor

@chrischrischris chrischrischris commented May 13, 2026

PR #928 rewrote aem.page/aem.live library URLs to content.da.live, which 404s for sources that genuinely live on the AEM host and were never copied to DA. This adds a 404-only fallback so mixed libraries work again.

daFetchLibrary wrapper: rewritten URL first, original on 404 only (auth/5xx still surface). Used by getItems, getBlocks, handleTemplateClick.
getBlockVariants does the same fallback inline (it can't share the wrapper because of the .plain.html suffix). fetchAndParseHtml now returns { doc, notFound } so 404 is distinguishable.

Tested against milo (library on sharepoint) and on client that has locked aem.page library

@aem-code-sync
Copy link
Copy Markdown

aem-code-sync Bot commented May 13, 2026

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

@chrischrischris chrischrischris merged commit 259a553 into main May 13, 2026
3 of 4 checks passed
@chrischrischris chrischrischris deleted the lib-fall branch May 13, 2026 23:01
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.

4 participants