Skip to content

fix: strip .html extension when unpublishing from browse#1008

Merged
rofe merged 2 commits into
mainfrom
unpubext
Jun 18, 2026
Merged

fix: strip .html extension when unpublishing from browse#1008
rofe merged 2 commits into
mainfrom
unpubext

Conversation

@rofe

@rofe rofe commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

@aem-code-sync

aem-code-sync Bot commented Jun 17, 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

push(item) { this.items.push(item); }
push(item) {
this.items.push(item);
return this.callback ? this.callback(item) : undefined;

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This fixture Queue was previously a no-op — push() enqueued items but never invoked a callback. The real nx Queue runs the callback per item (new Queue(callback, …)), which is how handleConfirmDelete drives its per-item unpublish logic.

Without this change the new test can't reach the .html-stripping code path being fixed here (the callback never fires). I kept the stub minimal — just callback invocation — and left out the real Queue's concurrency/throttle/on-complete behavior since the test doesn't need it.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Use the list item's ext field instead of a path string check, and
cover the non-HTML pass-through case.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@rofe rofe merged commit dee3f06 into main Jun 18, 2026
4 checks passed
@rofe rofe deleted the unpubext branch June 18, 2026 13:22
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.

Unpublish sends path with .html extension

2 participants