pathauto creates aliases for /taxonomy/term/n and not /image/tid/n for image-type nodes. This seems slightly odd to me as it results in image gallery URLs not being "friendly" while the actual taxonomy categories are.

This patch just changes the src alias when dealing with image-type nodes.

CommentFileSizeAuthor
pathauto-image_type.patch1.72 KBlewiz

Comments

lewiz’s picture

This is designed to be used in conjunction with a patch for image.module -- see http://drupal.org/node/23830

mikeryan’s picture

pathauto is implemented as a module that provides automatic aliasing services to other modules, through a documented API. Because it's not appropriate for core modules like node and taxonomy to support a contributed module like pathauto, implementations are provided (pathauto_node.inc etc.) for core modules. However, I don't think it's appropriate to build support for a contributed module like image into pathauto - better would be for image.module to add support for pathauto (i.e., calling pathauto_create_alias after taxonomy_save_term in image_admin).

fellow’s picture

Category: bug » feature
Priority: Normal » Critical

I need some like this for drupal 5. Anyone help me? Thanks!