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.
Would it be possible to use hook_url_alter() from the Url alter module instead of hook_term_path() to change the term path? This would allows us to change not only the path, but also the options, such as the path query and fragment. Currently this is not possible because of the limitations of hook_term_path() (See #325132: Unable to put query string in my path).
Comments
Comment #1
Agileware CreditAttribution: Agileware commentedMaybe instead of completely replacing hook_term_path with hook_url_alter we can look at having an option to use the url alter module instead of the hook_term_path if the user wants to.
Will have a look into the url alter module.
Comment #2
dboulet CreditAttribution: dboulet commentedThat's a good idea. So we could have the choice of installing the url_alter module if we wanted extra options.