I'm using Pathauto, Linkit, and Pathologic on my site to output nicely aliased links in wysiwyg content easily. My clients have discovered an interesting bug when url aliases are overriden on nodes. What is happening is our aliases are based directly off menu structure and when parent node titles are changed, so do the aliases, resulting in children pages having overriden aliases. E.g:

I have a menu structured:
Foo
--Bar
----Baz

So the urls will be /foo, /foo/bar, and /foo/bar/baz respectively. Now let's say I changed the title of Foo to foo2 so the url would now be /foo2 but the children would still have the urls /foo/bar and /foo/bar/baz which means on the node edit form the automatic alias checkbox will no longer be ticked and the overriden alias will be in the text box.

Now I create a link with linkit to Baz and pathologic outputs the link /foo2/bar/baz which obviously isn't correct! I have yet to look at the code that outputs the links in pathologic but is there any way that we could check for overriden aliases before just generating a broken link for what it "should" be?

Comments

Garrett Albright’s picture

Sorry, this must have been posted in a "ignore the issue queue" phase. Is this still an issue? Have you upgraded to the 7.x-2.x branch?

acbramley’s picture

Wow this is an old one! I can't even remember what project this bug was found on, my new projects use the 2.x branch and I haven't had any reports of this happening again so probably could be closed :)