eworkers / K2ForJ4

GNU General Public License v2.0
11 stars 6 forks source link

Invalid link of category menu item #42

Closed cmirnow closed 8 months ago

cmirnow commented 8 months ago

After updating K2 from the official current version to K2forJ4, I get a menu link instead of site.com/category_name such a link: site.com/category_name/category/10 (for example).

If in the updated K2 (Joomla 4, php 8.2) I create a category menu item, it works fine. I only observe this problem when updating from K2 to K2forJ4 and updating from Joomla 3 to Joomla 4 on a live site.

the-one-antonio commented 8 months ago

Thanks for noting this. I am also experiencing this issue.

tdrugan commented 8 months ago

The same here. I have now two menus: one for the K2 categories (not working and not displayed on the site) and a working one with the correct URLs that is used on my site. The second one dependes on the first: the first it does not generate the correct link when used but the correct link is active and can be linked as URL.

eworkers commented 8 months ago

please share your k2 Custom SEF URLs & Options for category URLs settings

eworkers commented 8 months ago

does this dc87567 solve your issue?

eworkers commented 8 months ago

does this dc87567 solve your issue?

please note that you have to edit and save the menu item again (sorry for that)

tdrugan commented 8 months ago

Apparently is working with no issues, I will veify in the morning each item.

Thank you very much. Tudor

https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail Fără viruși.www.avast.com https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

On Thu, Jan 11, 2024 at 11:44 PM eworkers @.***> wrote:

does this dc87567 https://github.com/eworkers/K2ForJ4/commit/dc875673d8e946b326d0b00b92939137f8f8e465 solve your issue?

please note that you have to edit and save the menu item again (sorry for that)

— Reply to this email directly, view it on GitHub https://github.com/eworkers/K2ForJ4/issues/42#issuecomment-1888017808, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACNLAZLSPPNNEZCWVEVNTEDYOBMLLAVCNFSM6AAAAABBE7LWESVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOBYGAYTOOBQHA . You are receiving this because you commented.Message ID: @.***>

-- Tudor C DRUGAN

cmirnow commented 8 months ago

does this dc87567 solve your issue?

Yes, that problem has been solved. Thank you.

cmirnow commented 8 months ago

does this dc87567 solve your issue?

please note that you have to edit and save the menu item again (sorry for that)

I don't think that's a problem.

eworkers commented 8 months ago

does this dc87567 solve your issue?

please note that you have to edit and save the menu item again (sorry for that)

I don't think that's a problem.

If you used K2ForJ4 before this update and have created menu item(s) for a single category, then these were stored in database without task and id (task=category$id=INT) We adjusted the router the overcome some URL issues caused by this. In this update task and id are being stored again and the router has been updated, so you have to edit the menu items created for single category and save them (just edit and save, you don't have to change anything) or some problem might occur with the new router.