It's not possible to delete path aliases with CPS as the aliases fallback to the published path alias when they have no value. The patch here removes the delete functionality and instead inserts a path with an empty alias into the cps_url_alias table so that the path in url_alias will be removed on publish.

Comments

hadsie created an issue. See original summary.

hadsie’s picture

StatusFileSize
new1.75 KB
hadsie’s picture

Status: Active » Needs review
hadsie’s picture

StatusFileSize
new1.3 KB

The previous patch only worked in limited circumstances. This patch leaves the existing workflow in tact as it's fine to delete aliases if they only exist in the current site version. It inserts the empty path when they can't be deleted.

  • hadsie committed 6461b7b on 7.x-1.x
    Issue #3117498 by hadsie: Unable to delete path aliases
    
hadsie’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.