- Posts: 5
COMMUNITY FORUM
K2 Tools module for categories menu not working
- Ivo
- Topic Author
- Offline
- New Member
Less
More
1 year 9 months ago - 1 year 9 months ago #180736
by Ivo
K2 Tools module for categories menu not working was created by Ivo
Hi,
I just updated to K2v2.11.
The K2 Tools module categorielist menu is not working anymore. The menu items link to wrong URL's.
Example:
The menu item links to:
/contactadvertenties/mannen/content/contactadvertenties/mannen-2/regio-drenthe
But it should be to:
/contactadvertenties/mannen/content/regio-drenthe
How can I fix this?
Regards,
Ivo
I just updated to K2v2.11.
The K2 Tools module categorielist menu is not working anymore. The menu items link to wrong URL's.
Example:
The menu item links to:
/contactadvertenties/mannen/content/contactadvertenties/mannen-2/regio-drenthe
But it should be to:
/contactadvertenties/mannen/content/regio-drenthe
How can I fix this?
Regards,
Ivo
Last edit: 1 year 9 months ago by Ivo.
Please Log in or Create an account to join the conversation.
- Ivo
- Topic Author
- Offline
- New Member
Less
More
- Posts: 5
1 year 8 months ago #180771
by Ivo
Replied by Ivo on topic K2 Tools module for categories menu not working
Anybody any ideas?
Please Log in or Create an account to join the conversation.
- John Markos
- Offline
- New Member
Less
More
- Posts: 1
1 year 8 months ago - 1 year 8 months ago #180829
by John Markos
Replied by John Markos on topic K2 Tools module for categories menu not working
To fix this, you need to check your K2 category settings and ensure that the correct URL structure is configured. Follow these steps:
Go to the K2 Categories Manager.
Click on the category that is causing the issue.
Scroll down to the "SEF Settings" section.
Check the "Item URL Format" setting.
Ensure that the correct URL structure is configured in this field.
Save the category settings.
Go to the K2 Categories Manager.
Click on the category that is causing the issue.
Scroll down to the "SEF Settings" section.
Check the "Item URL Format" setting.
Ensure that the correct URL structure is configured in this field.
Save the category settings.
Last edit: 1 year 8 months ago by John Markos.
Please Log in or Create an account to join the conversation.
- Ivo
- Topic Author
- Offline
- New Member
Less
More
- Posts: 5
1 year 8 months ago #180830
by Ivo
Replied by Ivo on topic K2 Tools module for categories menu not working
Thanks for the reply!
I've removed the prefix for categorie URLs. The menu is now working but the URL's have changed.
It was: contactadvertenties/mannen/regio-drenthe
and now its changed to: contactadvertenties/mannen/contactadvertenties/mannen/regio-drenthe
The categorie and path or double in the URL.
I hope you can point me in the right direction.
Regards,
Ivo
I've removed the prefix for categorie URLs. The menu is now working but the URL's have changed.
It was: contactadvertenties/mannen/regio-drenthe
and now its changed to: contactadvertenties/mannen/contactadvertenties/mannen/regio-drenthe
The categorie and path or double in the URL.
I hope you can point me in the right direction.
Regards,
Ivo
Please Log in or Create an account to join the conversation.
- JoomlaWorks
- Offline
- Admin
Less
More
- Posts: 6218
1 year 8 months ago #180833
by JoomlaWorks
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by JoomlaWorks on topic K2 Tools module for categories menu not working
Is the site live to have a look?
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Ivo
- Topic Author
- Offline
- New Member
Less
More
- Posts: 5
1 year 8 months ago - 1 year 8 months ago #180835
by Ivo
Replied by Ivo on topic K2 Tools module for categories menu not working
Yes of course!
url is filtered.
domain 60plusrelatie .nl
url is filtered.
domain 60plusrelatie .nl
Last edit: 1 year 8 months ago by Ivo. Reason: URL filter
Please Log in or Create an account to join the conversation.
- JoomlaWorks
- Offline
- Admin
Less
More
- Posts: 6218
1 year 8 months ago #180837
by JoomlaWorks
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by JoomlaWorks on topic K2 Tools module for categories menu not working
The URLs seem fine, e.g. "/contactadvertenties/mannen/energieke-man-55-uit-zuid-holland". Maybe it was some caching issue?
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- JoomlaWorks
- Offline
- Admin
Less
More
- Posts: 6218
1 year 8 months ago #180838
by JoomlaWorks
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by JoomlaWorks on topic K2 Tools module for categories menu not working
Scratch that, thought it was all URLs, but you only meant the Categories list from K2 Tools. I'll have a look and let you know.
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- JoomlaWorks
- Offline
- Admin
Less
More
- Posts: 6218
1 year 8 months ago - 1 year 8 months ago #180840
by JoomlaWorks
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by JoomlaWorks on topic K2 Tools module for categories menu not working
I had a look again at the advanced SEF router code... To be honest it's kind of a mess what was previous there and extremely bad performance-wise. I had adapted the code in K2 v2.10.3 but this is a side-effect unfortunately which I'll note as a bug and properly check on the coming updates of K2.
In the meantime, I would propose this:
- Set "Enable custom SEF settings for K2 URLs" to "No".
- Ensure your categories are properly mapped into a menu. If there are many and you don't want to do that, at least map the "parent" ones and *ensure* there is at least a single K2 menu item pointing to all categories with a menu alias that is generic (e.g. "show"). This menu item does not need to be shown in the frontend of your site (it can be in some hidden menu).
- Finally clear your caches and check your URLs again.
For the record, upcoming changes in K2's code will be massive so as to avoid any release hiccups in the future (whenever the J team feels like making breaking changes). This includes the URL router which will be re-written from scratch.
In the meantime, I would propose this:
- Set "Enable custom SEF settings for K2 URLs" to "No".
- Ensure your categories are properly mapped into a menu. If there are many and you don't want to do that, at least map the "parent" ones and *ensure* there is at least a single K2 menu item pointing to all categories with a menu alias that is generic (e.g. "show"). This menu item does not need to be shown in the frontend of your site (it can be in some hidden menu).
- Finally clear your caches and check your URLs again.
For the record, upcoming changes in K2's code will be massive so as to avoid any release hiccups in the future (whenever the J team feels like making breaking changes). This includes the URL router which will be re-written from scratch.
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Last edit: 1 year 8 months ago by JoomlaWorks.
Please Log in or Create an account to join the conversation.
- JoomlaWorks
- Offline
- Admin
Less
More
- Posts: 6218
1 year 8 months ago #180843
by JoomlaWorks
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by JoomlaWorks on topic K2 Tools module for categories menu not working
I've actually gone ahead and updated the URL router. Version 2.11.20230323 is now available to upgrade and should resolve any such issues.
I've also enabled advanced SEF URLs on the K2 demo site here: demo.getk2.org/
I've also enabled advanced SEF URLs on the K2 demo site here: demo.getk2.org/
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.