Keyword

Issue with menu item urls after joomla 3.9 update

  • web-tiki
  • web-tiki's Avatar Topic Author
  • Offline
  • New Member
More
3 months 2 weeks ago - 3 months 2 weeks ago #171379 by web-tiki
web-tiki created the topic: Issue with menu item urls after joomla 3.9 update
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
  • 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
and click on the link to article 2, it goes to
mysite.com/article1/article2
that doesn't exist. It should lead
mysite.com/article2

Is there something obvious I missed?
Last edit: 3 months 2 weeks ago by web-tiki.

Please Log in or Create an account to join the conversation.

  • Fotis
  • Fotis's Avatar
  • Offline
  • Administrator
  • JoomlaWorks Support Team
More
3 months 2 weeks ago #171380 by Fotis
Fotis replied the 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.


If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

Please Log in or Create an account to join the conversation.

  • web-tiki
  • web-tiki's Avatar Topic Author
  • Offline
  • New Member
More
2 months 2 weeks ago #171646 by web-tiki
web-tiki replied the 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.

Please Log in or Create an account to join the conversation.

  • Fotis
  • Fotis's Avatar
  • Offline
  • Administrator
  • JoomlaWorks Support Team
More
2 months 2 days ago #171720 by Fotis
Fotis replied the 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...)


If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

Please Log in or Create an account to join the conversation.

  • web-tiki
  • web-tiki's Avatar Topic Author
  • Offline
  • New Member
More
2 months 20 hours ago - 2 months 20 hours ago #171772 by web-tiki
web-tiki replied the 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
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
on the menu links. It show the url before my hack. The href displays the link after my hack.
Last edit: 2 months 20 hours ago by web-tiki.

Please Log in or Create an account to join the conversation.

  • Fotis
  • Fotis's Avatar
  • Offline
  • Administrator
  • JoomlaWorks Support Team
More
2 months 11 hours ago #171783 by Fotis
Fotis replied the 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?


If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

Please Log in or Create an account to join the conversation.

  • web-tiki
  • web-tiki's Avatar Topic Author
  • Offline
  • New Member
More
1 month 3 weeks ago #171878 by web-tiki
web-tiki replied the 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?

Please Log in or Create an account to join the conversation.

  • Fotis
  • Fotis's Avatar
  • Offline
  • Administrator
  • JoomlaWorks Support Team
More
1 month 3 weeks ago #171886 by Fotis
Fotis replied the 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.


If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

Please Log in or Create an account to join the conversation.

  • web-tiki
  • web-tiki's Avatar Topic Author
  • Offline
  • New Member
More
1 month 2 weeks ago #171894 by web-tiki
web-tiki replied the 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.

Please Log in or Create an account to join the conversation.

  • Fotis
  • Fotis's Avatar
  • Offline
  • Administrator
  • JoomlaWorks Support Team
More
1 month 2 weeks ago #171898 by Fotis
Fotis replied the 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.


If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

Please Log in or Create an account to join the conversation.

Moderators: william white

Powered by Kunena Forum