1. Alias 'blog' or other system path to something else. 2. Go to menu admin. 3. Get one more row for the blog item in the db every reload. (and it is even handled somewhat randomly, seemingly depending on surrounding menu items) I think I've traced this to the one line of code added with http://drupal.org/node/9477. The blog menu item is never found for de-duping since it is never searched for, so the menu system thinks it needs to make a new one every time. Possible solutions: - Revert the patch. - Check if the un-normalized path is in the 'path index' array before normalizing. - Disallow aliasing system paths. Anyone have other good ideas? -- Neil Drumm http://delocalizedham.com/
Neil Drumm wrote:
1. Alias 'blog' or other system path to something else. 2. Go to menu admin. 3. Get one more row for the blog item in the db every reload. (and it is even handled somewhat randomly, seemingly depending on surrounding menu items)
I think I've traced this to the one line of code added with http://drupal.org/node/9477. The blog menu item is never found for de-duping since it is never searched for, so the menu system thinks it needs to make a new one every time.
Possible solutions:
- Revert the patch. - Check if the un-normalized path is in the 'path index' array before normalizing. - Disallow aliasing system paths.
Anyone have other good ideas?
Aha! I thought I was seeing odd menu duplication, but I couldn't figure out how to, heh, duplicate it.
Same thing also happens with the contact module if the site already has a path alias named contact - which is very common. -K
Neil Drumm wrote:
Possible solutions:
- Revert the patch.
I think this is best for 4.7 (and until anyone takes a serious look at the menu and path systems). I updated http://drupal.org/node/9477. -- Neil Drumm http://delocalizedham.com/
participants (3)
-
Earl Miles -
Karthik -
Neil Drumm