Keyword

Issue with menu item urls after joomla 3.9 update

  • web-tiki
  • web-tiki's Avatar Topic Author
  • Offline
  • New Member
More
1 month 3 weeks ago - 1 month 3 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: 1 month 3 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
1 month 3 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 weeks 3 days 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
5 days 20 hours 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
3 days 20 hours ago - 3 days 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: 3 days 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
3 days 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.

More
13 hours 18 minutes ago #171828 by David Murell
David Murell replied the topic: Issue with menu item urls after joomla 3.9 update
As your site grows, it is easy to lose the URL structure and hierarchy. Bad structures make it difficult to move users and bots, which will negatively affect your ranking.
Do not use the correct folder and subfolder structure.
URLs with special characters, capital letters or unhealthy for people.

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

Moderators: william white

Powered by Kunena Forum