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.
There was some problem with generating paths to taxonomy terms if they were localized or translated. I've made some patch for it. You must apply it to i18n and pathauto modules.
Here you can read about the problem on pathauto issue list https://drupal.org/node/1993462
Comments
Comment #1
dmaciej CreditAttribution: dmaciej commentedComment #2
dmaciej CreditAttribution: dmaciej commentedTests with i18n taxonomy disabled and some fix...
Comment #3
Jose Reyero CreditAttribution: Jose Reyero commentedThe idea looks good though the patch has some issues, may be improved:
- It is assuming you want to regenerate the path for every language every time, it may not be so.
- Instead of invoking one module from the other, can't we just use generic hook_taxonomy_update() kind of hooks so we don't need that many 'if module_exists' ?
Btw, set the patch to 'Needs review' when ready because otherwise the testbot -and possibly me too- will ignore it.
Comment #4
dmaciej CreditAttribution: dmaciej commented@Jose Reyero:
1. I will think about it.
2. Do you suggest to change
to a form hook in pathauto module - it will be one `module_exists` still.
I don't see a way to do these things from the taxonomy hook. Could you give more explaination here?
Comment #5
dmaciej CreditAttribution: dmaciej commentedComment #6
dmaciej CreditAttribution: dmaciej commented