jUpgrade icon indicating copy to clipboard operation
jUpgrade copied to clipboard

Menu item field 'path' prepended random alias

Open janich opened this issue 13 years ago • 3 comments

After upgrading a rather simple site (core joomla components only), I found that whenever a menu item were saved it would prepend a (seemingly) random alias to the "path" field.

Doing a "Rebuild" fixed this for all menu items - until they were saved once again.

This looked like the same issue as reported here: http://redcomponent.com/forum/92-jupgrade/127930-bug-in-menu-migration-method

janich avatar May 29 '12 20:05 janich

The random alias is nedded because the Joomla 2.5 database not allow duplicated aliases.

fastslack avatar Jun 05 '12 11:06 fastslack

FYI.

I'm suffering from the same problem, except i get a fatal error when trying to add a menu item, rather than adding a path to the saved/new row the path is prepended to the path on all the other rows (menu items) in the #_menu table.

no id or path is applied to the new row - i have to adjust this manually in the database then rebuild the menu to get them to work on the front end.

this occurs on a localhost version of Joomla 3.0 on IIS7 (i.e core joomla issue and not with this git).

mat-0 avatar Dec 18 '12 09:12 mat-0

I've also seen this issue -- I know that the alias needs to be unique, but JUpgrade is overdoing it:

Here is perfectly legal structure in Joomla 2.5+:

forum
* forum
discussions
* forum
** forum

But still JUpgrade converts the aliases as it thinks they are not unique (but they are!):

forum
* forum-1
discussions
* forum-2
** forum-3

So, Joomla does allow non-unique aliases, but each path should be different:

/forum /forum/forum /discussions/forum /discussions/forum/forum

etc..

I also think that there may be a bug in menu creation as in many cases menu breaks if you try to add a new menu item in backend -- until you run Rebuild Menus like @janich suggested.

mahagr avatar Dec 23 '12 09:12 mahagr