Hi, I have a trouble with creating aliases for paths which has been registered as menu items for modules.
For example, I want to make all my forum topics aliases like 'forum/topic/1', 'forum/topic/2' etc. I using for this pattern 'forum/topic/[nid]', but pathauto don't create this aliases and show message: 'Ignoring alias forum/topic/1 due to existing path conflict.'
I have found that function _pathauto_path_is_callback() checks alias destination for presence in system menu, and, if this function returns TRUE, alias won't be created. This is because for this function all paths - that even just begins with registered path - are already exsists. So 'forum' exists, 'forum/1' exists, 'forum/xxx/1' exists and so on - if first part equal 'forum'. I think that this is not correct. Path 'forum' is occipied by firum module, but why I can't create my own pages with 'forum/help' or 'forum/something-other'?
I have atteched little patch that trying to test full path instead of just beginning. I hope you will agree with my reasons.

CommentFileSizeAuthor
pathauto_menu.patch316 bytesbeholder

Comments

greggles’s picture

Category: task » bug

This seems quite reasonable - thanks for your help to fix it. I have been "bitten" by this bug before as well but didn't have the time to look into it.

greggles’s picture

Status: Needs review » Fixed

Applied to 6.x. Thanks for your help creating this, beholder!

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.