This is a generic problem in Joomla when any category has subcategory and article with the same id, then routing to the article does not work from the category view. I have reproduced this problem on 4 websites.
Reproduce:
I have constructed a demo of this bug under the link:
https://easyhomebaking.com/cookies
Category "45:Cookies" contains:
open the preview of the category 45:Cookies
https://easyhomebaking.com/cookies
click on the article "64:Test article from Cookies with same id as subcategory Macarons"
instead of opening the article:64 Joomla display a preview of the category:64 "Macarons"
following URL https://easyhomebaking.com/cookies/64-article-64 instead of opening article 64 it display the category 64
there should not be any conflicts between subcategory and article with the same id inside any parent category. Article should open correctly in a full view
Article does not open at all, instead under the article url/path incorrectly display the content of the category with same id
Joomla 5.2.2
Template - shaper_helixultimate
Labels |
Added:
No Code Attached Yet
|
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2024-12-17 20:01:02 |
Closed_By | ⇒ | Hackwar |
hi @Hackwar,
thanks for answer but I do not agree.
bug is a bug. Please do not immediately reject a bug / accept it without any approval or suggestion.
this problem seems to be introduced in J4 or J5. I have migrated the content from J3 to J5 keeping all IDs (using J2XML extension) and the problem just come with J5.
I have double checked the old installation of similar website in J3, where I have the same constellation of article id:64 and subcategory id:64 and there is NO problem like that.
I have been informed by users that some articles just disappeared after migration from J3 to J4/J5 because of this bug.
The biggest issue with this BUG is that it could happen without any awareness of the administrator. This conflict can happen at any time / any category, when moving articles between categories or changing the hierarchy of the categories. Is not possible to track such conflicts to check any time if the created article is in a conflict with some category id.
I would first suggest to check why this was working correctly in J3
many thanks in advance
Marcin
Please reopen. The issue seems to be a new bug in J4 in compare to J3
Switch off id - problem solved
I use the article ID in the url since years, many thousand articles are indexed by google and other search machines, I do not want just with one click make all my urls invalid / kill my SEO scoring of all my websites.
After disabling the ID the old URLs end up with 404. I would need to manually configure redirects for all articles - this is not a solution.
Having ID in the article url has more advantages - what I see - moving article to another category or menu item keep the article url still valid and article can be open (I have additionally implemented a plugin which in the background resolve the actual article URL and redirect to it if the article is called using old, invalid url)
If Joomla would automatically redirect the old urls having article ID to the new valid URLs without ID - this would be solution but not just killing the whole website ...
anyway this is also a long lasting problem in Joomla since the beginning.
Some other CMS can automatically track, manage and redirect article urls after moving articles, categories or other changes. In Joomla this always ends up with article not found and manual solution or managing manual redirects using extensions, pluigins etc ..
Joomla 5.3 will contain an automatic redirection from ID-based URLs to non-ID-based URLs.
hi guys,
thanks .. this is a very good news ...
with love to Joomla and greetings to the team developing the best CMS system on the world :)
I'm sorry, but this is an inherent limitation of the routing and can't really be changed. You should either switch off IDs or create the same article again, resulting in a new ID. This is a definitive wontfix.