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.
When fixing filenames for existing files it would be useful to be able to redirect visitors, who may have bookmarked the old paths or otherwise shared the URLs, to new the new ones. To that end, it would be very useful if transliteration_retroactive() could:
- Check if path_redirect is installed,
- If so, add a {path_redirect} record for the file.
Comment | File | Size | Author |
---|---|---|---|
#7 | 881644.patch | 984 bytes | amateescu |
#2 | transliteration-support_path_redirect-881644-3.patch | 1.04 KB | jwilson3 |
Comments
Comment #1
Dave ReidWould be great, as long as the proper APIs are used and not direct db queries to {path_redirect}. That bit us multiple times with pathauto.
Comment #2
jwilson3Please have a look...
Comment #3
DamienMcKennaLooks simple, looks good. Anyone else care to test?
Comment #4
bsztreha CreditAttribution: bsztreha commentedI also need this feature, i test and seems ok!
Patch created the alias, and it works
Comment #5
jwilson3In light of #4, might I venture to RTBC my own patch, or is that going to far?
Comment #6
amateescu CreditAttribution: amateescu commentedTested this one manually and it worked as advertised so I commited #2 to 6.x-3.x.
Needs to be ported to 7.x-3.x for the Redirect module.
Comment #7
amateescu CreditAttribution: amateescu commentedStarted to work on this.
Comment #8
amateescu CreditAttribution: amateescu commentedCommited #7 to 7.x-3.x.
http://drupalcode.org/project/transliteration.git/commit/62f9274