Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Menu item field 'path' prepended random alias #42

Open
janich opened this issue May 29, 2012 · 3 comments
Open

Menu item field 'path' prepended random alias #42

janich opened this issue May 29, 2012 · 3 comments

Comments

@janich
Copy link

janich commented May 29, 2012

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

@fastslack
Copy link
Owner

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

@mat-0
Copy link

mat-0 commented Dec 18, 2012

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).

@mahagr
Copy link
Contributor

mahagr commented Dec 23, 2012

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants