Skip to content

fix-vanity-url-unpublish-canonical-page#36185

Closed
riccardoruocco wants to merge 1 commit into
dotCMS:mainfrom
riccardoruocco:fix-vanity-url-unpublish-canonical-page
Closed

fix-vanity-url-unpublish-canonical-page#36185
riccardoruocco wants to merge 1 commit into
dotCMS:mainfrom
riccardoruocco:fix-vanity-url-unpublish-canonical-page

Conversation

@riccardoruocco

Copy link
Copy Markdown
Contributor

Summary

This PR fixes S3 static Vanity URL cleanup when the canonical page/resource is unpublished.

When STATIC_PUSH_S3_VANITY_ALIAS_ENABLED is enabled, unpublishing a canonical resource now looks up any generated Vanity URL aliases in static_s3_vanity_mapping, removes the related S3 objects, and clears the mapping rows.

If a vanity alias was shadowing an existing live resource at the same path, dotCMS restores that live resource on S3 instead of deleting the key.

The PR also updates the startup task number and postgres.sql definition for static_s3_vanity_mapping, so both upgrades and fresh installs create the table correctly.

@riccardoruocco riccardoruocco force-pushed the fix-vanity-url-unpublish-canonical-page branch from d5e9739 to 93fba5b Compare June 17, 2026 08:31
@dsilvam

dsilvam commented Jun 17, 2026

Copy link
Copy Markdown
Member

Closing in favor of #36205 so the checks run

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants