When saving an article, the path name is incorrect

General questions relating to Joomla! 3.x.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting.
Forum Post Assistant - If you are serious about wanting help, you should use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10
Post Reply
mwales
Joomla! Apprentice
Joomla! Apprentice
Posts: 21
Joined: Sat Nov 20, 2021 5:06 pm

When saving an article, the path name is incorrect

Post by mwales » Sat Nov 27, 2021 9:25 pm

When creating a new menu item or updating a newly created menu item, the path name is incorrect. When the menu item is clicked on the front end, the result is a 404 page.
When I look in the database at menu, the menu item will have a path of, for example, "Category/test" when it should be just "test". If I edit the path and remove the "Category/" part, the page displays as expected.
If I change this menu item again, the path name is back to "Category/test".
This does not happen to menu items prior to a specific time. I can not determine when the behavior changed.
Marshall

User avatar
sozzled
Joomla! Master
Joomla! Master
Posts: 11338
Joined: Sun Jul 05, 2009 3:30 am
Location: Canberra, Australia

Re: When saving an article, the path name is incorrect

Post by sozzled » Sat Nov 27, 2021 9:50 pm

More information please about the mischievous menu item. What is the menu type of this item?

Also, and this is just shooting blindly at the problem, go to Content » Article and select the Options button (right-hand top). On the screen that then appears, look under Routing. What settings are you using for any of those routing options?
“If you think I’m wrong then say, ‘I think you’re wrong.’ If you say ‘You’re wrong!’, how do you know?” :)

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 40664
Joined: Sat Apr 05, 2008 9:58 pm

Re: When saving an article, the path name is incorrect

Post by Webdongle » Sun Nov 28, 2021 11:21 am

How did you install Joomla?
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

mwales
Joomla! Apprentice
Joomla! Apprentice
Posts: 21
Joined: Sat Nov 20, 2021 5:06 pm

Re: When saving an article, the path name is incorrect

Post by mwales » Sun Nov 28, 2021 3:06 pm

Sozzled,
I only found one place for Routing. I have, hopefully, included screen shots of the article option page and the group where I found Routing.
Article Option Screen.jpg
Article Option Screen Routing.jpg
You do not have the required permissions to view the files attached to this post.

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 28435
Joined: Mon Oct 27, 2008 9:27 pm
Location: Romerike, Norway

Re: When saving an article, the path name is incorrect

Post by Per Yngve Berg » Sun Nov 28, 2021 6:21 pm


mwales
Joomla! Apprentice
Joomla! Apprentice
Posts: 21
Joined: Sat Nov 20, 2021 5:06 pm

Re: When saving an article, the path name is incorrect

Post by mwales » Tue Nov 30, 2021 2:32 pm

Thanks per,
Read the reference you provided. My problem is associated with "menu" when saving a new menu, not an existing menu. The path value includes categories when it shouldn't. The reference doesn't say that menus are included in the New routing mechanism.

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 40664
Joined: Sat Apr 05, 2008 9:58 pm

Re: When saving an article, the path name is incorrect

Post by Webdongle » Tue Nov 30, 2021 5:41 pm

The path is derived from the menu structure
i.e.
Top menu item 'Pets'
Child menu item 'Dogs' and 'Cats'
Urls are
site.com/pets
site.com/pets/dogs and site.com/pets/cats

(unless you alter the Menu item 'Title field').
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

User avatar
sozzled
Joomla! Master
Joomla! Master
Posts: 11338
Joined: Sun Jul 05, 2009 3:30 am
Location: Canberra, Australia

Re: When saving an article, the path name is incorrect

Post by sozzled » Tue Nov 30, 2021 7:29 pm

sozzled wrote:
Sat Nov 27, 2021 9:50 pm
More information please about the mischievous menu item. What is the menu type of this item?
It really would help to know the menu item type as well as the menu structure. I agree with @Webdongle: if the menu structure is hierarchical, then the URLs look normal to me.

There is a difference between the menu hierarchy (i.e. child menu items located below a parent) and the "path" (not to be confused with the file structure) and editing the "path"—somehow with phpMyAdmin—is not a solution.
“If you think I’m wrong then say, ‘I think you’re wrong.’ If you say ‘You’re wrong!’, how do you know?” :)

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 40664
Joined: Sat Apr 05, 2008 9:58 pm

Re: When saving an article, the path name is incorrect

Post by Webdongle » Tue Nov 30, 2021 8:07 pm

@mwales
'Path' as in Breadcrumbs is related to Category structure
'Path' as in url path is related to menu structure
By 'Path name' which path are you referring to?
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".


Post Reply

Return to “General Questions/New to Joomla! 3.x”