So I have an interesting problem that I'm wondering if anyone has come across before and knows how to fix:
My entire site is 1 big menu, with node aliases being generated by the menu hierarchy e.g /foo/bar/baz would be for a node titled Baz, who's parent is Bar and grandparent is Foo. The problems I have are:
1) If Foo or Bar are renamed, Baz now has an alias that does not match up to what pathauto considers it's correct alias, meaning the Generate automatic alias box in unticked.
2) If Foo or Bar are reparented in the menu then the same problem occurs
This is easy enough to fix when it's 1 or 2 nodes as you can just edit, retick the auto alias box and everything's fine. But this site may have hundreds of nodes that are being moved around and it's just not feasible to update them all. Furthermore, we can't delete and bulk regenerate the content aliases on the site when this happens as this would take far too long and leaves the possibility of content being unaliased when users are visiting the site.
Any help with this issue would be greatly appreciated!
Cheers,
Adam
Comments
Comment #1
klonosI'm facing the same issue.
Is this perhaps a core bug? I mean should menu/path changes of a node trigger some update hooks while they actually don't?
Comment #2
klonos...related/duplicate?: #961972: [menupath-raw] not creating aliases when updating a node which previously had no menu entry
Comment #3
acbramley CreditAttribution: acbramley commentedThis will be fixed with #936222: Merge in pathauto_persist module functionality to prevent losing manual aliases with node_save() calls
Comment #4
klonosPlease see full explanation in my comment in #961972-7: [menupath-raw] not creating aliases when updating a node which previously had no menu entry. The gist of it boils down to:
Comment #5
aken.niels@gmail.comAny updates on this? I'm currently working on a project which depends heavily on restructuring the menu from time-to-time and which should trigger rebuilding the path alias for each node which is moved in the menu, including children.