This bug is related to https://drupal.org/node/841044
If you add a file, the module creates an alias correctly for the file. However, if you delete the file or node, the corresponding alias will not be removed.
D7 provides hook_file_delete, which can be used to delete the path. I will provide a patch shortly.
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | file_aliases-delete-alias-with-file-2256545_7.patch | 1.11 KB | rajiv.singh |
| #1 | file_aliases-delete-alias-with-file-2256545.patch | 553 bytes | dpintats |
Comments
Comment #1
dpintats commentedHaving a crazy time with the patch, mostly because of https://drupal.org/node/1909040. The module file is saved in dos format, so the git diff is producing a file with mac line endings. Therefore this patch only applies via traditional patching: patch -p1 < file_aliases-delete-alias-with-file-2256545.patch
Sorry about this, but it will need to be updated once the unix issue is committed to the project...
Comment #2
dpintats commentedComment #3
dpintats commentedAaaaaand I realized just now that this fix was already applied to the comprehensive patch mentioned in my post....hours of work for nothing. Anyway, isolated patch here anyway.
Comment #4
decipheredThanks for the patch, fixed and committed.
Comment #7
rajiv.singh commentedEnabled patch #1 for language based URL aliases