Skip to content

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

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

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.

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

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

1 participant