Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I realize this may be naive of me, but I was just curious whether there's any way of making the links to images/other files auto-update to match the new file names, or if there are any plans for this in the future?
Comment | File | Size | Author |
---|---|---|---|
#4 | imce_rename-path_redirect.patch | 2.33 KB | stackpr |
Comments
Comment #1
aaron1234nz CreditAttribution: aaron1234nz commentedCurrently this module does not support this behaviour. I think this would be nice to have; it may be challenging to get this feature working right though (I can think of a number of potential issues). I'll take a look when time allows (or accept patches if anyone's offering...).
Comment #2
iNade CreditAttribution: iNade commentedI would love to see this feature too. Tell me if you need some help on.
Comment #3
aaron1234nz CreditAttribution: aaron1234nz commentedIf your happy to write a patch that would be great! I'd take a look at the filefield_path module as this has a retroactive update feature for renaming files built into it.
Comment #4
stackpr CreditAttribution: stackpr commentedThe attached patch adds a redirect using path_redirect. However, it can only work if the web server (apache) is configured to allow Drupal handling of non-existent files in the files directory.