- Posts: 6
COMMUNITY FORUM
Issue with menu item urls after joomla 3.9 update
- web-tiki
- Topic Author
- Offline
- New Member
Less
More
5 years 8 months ago - 5 years 8 months ago #171379
by web-tiki
Issue with menu item urls after joomla 3.9 update was created by web-tiki
Hello,
I have an issue with several sites using K2 after and update to latest joomla 3.9. They use K2 2.9.
The url sturcture of the webistes is :
Home mysite.com
There is one menu link for each article. The issue is : when I am on article 1 with the urland click on the link to article 2, it goes tothat doesn't exist. It should lead
Is there something obvious I missed?
I have an issue with several sites using K2 after and update to latest joomla 3.9. They use K2 2.9.
The url sturcture of the webistes is :
Home mysite.com
- article 1
mysite.com/article1
- article 2
mysite.com/article2
- article 3
mysite.com/article3
- ...
There is one menu link for each article. The issue is : when I am on article 1 with the url
mysite.com/article1
mysite.com/article1/article2
mysite.com/article2
Is there something obvious I missed?
Last edit: 5 years 8 months ago by web-tiki.
Please Log in or Create an account to join the conversation.
- JoomlaWorks
- Offline
- Admin
Less
More
- Posts: 6218
5 years 8 months ago #171380
by JoomlaWorks
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by JoomlaWorks on topic Issue with menu item urls after joomla 3.9 update
There's an option in the menus to rebuild them. Try that. Make sure you are also NOT seeing cache. So clear it as well. In any case, menus are not a part of K2, so if something is broken there, it's probably Joomla. If you migrated from a much older release, this could be the reason.
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- web-tiki
- Topic Author
- Offline
- New Member
Less
More
- Posts: 6
5 years 7 months ago #171646
by web-tiki
Replied by web-tiki on topic Issue with menu item urls after joomla 3.9 update
Sorry for my late reply.
I have tried rebuilding the menus and made sure again I am not seeing the cached versions but the issue is still occuring.
I have solved it on some sites with "hardcoded" menu item links but on other I can't use this technique as there are too many pages.
I am still looking for a solution. This only happens on sites with K2 and only on K2 article pages.
I have tried rebuilding the menus and made sure again I am not seeing the cached versions but the issue is still occuring.
I have solved it on some sites with "hardcoded" menu item links but on other I can't use this technique as there are too many pages.
I am still looking for a solution. This only happens on sites with K2 and only on K2 article pages.
Please Log in or Create an account to join the conversation.
- JoomlaWorks
- Offline
- Admin
Less
More
- Posts: 6218
5 years 7 months ago #171720
by JoomlaWorks
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by JoomlaWorks on topic Issue with menu item urls after joomla 3.9 update
Looking at your issue again, it looks like a broken menu override perhaps. This would explain why the 2nd URL is appended to the /article1 URL. If you can share a URL, I can verify this for you.
(and sorry for my late reply...)
(and sorry for my late reply...)
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- web-tiki
- Topic Author
- Offline
- New Member
Less
More
- Posts: 6
5 years 7 months ago - 5 years 7 months ago #171772
by web-tiki
Replied by web-tiki on topic Issue with menu item urls after joomla 3.9 update
Hello,
There were no menu overrides in the following example. I added one to hack a temporary solution with this code in
Here is a link to a page that shows the issue :
www.centre-imhotep.com/le-blog/actualites/item/144-stage-d-ete-imhotep-2019-vacances-studieuses-entre-monts-ardechois-acupuncture-et-piscine
In the menu, you will see the data attributeon the menu links. It show the url before my hack. The href displays the link after my hack.
There were no menu overrides in the following example. I added one to hack a temporary solution with this code in
html/mod_menu/default_component.php
// Display normal menu in data attribute for debugging purposes :
$attributes['data-default-link'] = $item->flink;
// delete part of url and change url
$currentUrl = JURI::root(true);
if (strpos($currentUrl, 'item') !== false) {
$newLink = str_replace($currentUrl, "", $item->flink);
$item->flink = $newLink;
}
Here is a link to a page that shows the issue :
www.centre-imhotep.com/le-blog/actualites/item/144-stage-d-ete-imhotep-2019-vacances-studieuses-entre-monts-ardechois-acupuncture-et-piscine
In the menu, you will see the data attribute
data-default-link
Last edit: 5 years 7 months ago by web-tiki.
Please Log in or Create an account to join the conversation.
- JoomlaWorks
- Offline
- Admin
Less
More
- Posts: 6218
5 years 7 months ago #171783
by JoomlaWorks
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by JoomlaWorks on topic Issue with menu item urls after joomla 3.9 update
This is extremely weird. And you're not using a custom SEF extension or anything? Did you try re-installing Joomla latest?
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- web-tiki
- Topic Author
- Offline
- New Member
Less
More
- Posts: 6
5 years 7 months ago #171878
by web-tiki
Replied by web-tiki on topic Issue with menu item urls after joomla 3.9 update
No, I don't use any SEF plugins on any of the sites with the issue.
What do you mean by reinstalling joomla latest?
What do you mean by reinstalling joomla latest?
Please Log in or Create an account to join the conversation.
- JoomlaWorks
- Offline
- Admin
Less
More
- Posts: 6218
5 years 7 months ago #171886
by JoomlaWorks
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by JoomlaWorks on topic Issue with menu item urls after joomla 3.9 update
If your site was gradually updated from Joomla 1.5 or 2.5 to 3.x, perhaps some menu items are broken. This has happened before. If hitting the "Rebuild" button in the menu manager does not resolve things, try re-creating a couple of menus (and unpublish the old ones) to check if the issue still occurs.
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- web-tiki
- Topic Author
- Offline
- New Member
Less
More
- Posts: 6
5 years 7 months ago #171894
by web-tiki
Replied by web-tiki on topic Issue with menu item urls after joomla 3.9 update
This site was made in joomla 2.5 and gradualy updated to 3.x
I have tried recreating menu items but the issue still occurs.
I have tried recreating menu items but the issue still occurs.
Please Log in or Create an account to join the conversation.
- JoomlaWorks
- Offline
- Admin
Less
More
- Posts: 6218
5 years 6 months ago #171898
by JoomlaWorks
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by JoomlaWorks on topic Issue with menu item urls after joomla 3.9 update
Also try creating a new menu overall and add a couple new menu items in it. This could work.
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.