Keyword

Issue with menu item urls after joomla 3.9 update

  • web-tiki
  • web-tiki's Avatar Topic Author
  • Offline
  • New Member
More
5 years 1 month ago - 5 years 1 month ago #171379 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
  • 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: 5 years 1 month ago by web-tiki.

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

More
5 years 1 month ago #171380 by JoomlaWorks
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
  • web-tiki's Avatar Topic Author
  • Offline
  • New Member
More
5 years 3 weeks ago #171646 by web-tiki
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.

More
5 years 1 week ago #171720 by JoomlaWorks
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...)

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
  • web-tiki's Avatar Topic Author
  • Offline
  • New Member
More
5 years 1 week ago - 5 years 1 week ago #171772 by web-tiki
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: 5 years 1 week ago by web-tiki.

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

More
5 years 1 week ago #171783 by JoomlaWorks
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
  • web-tiki's Avatar Topic Author
  • Offline
  • New Member
More
5 years 1 day ago #171878 by web-tiki
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.

More
4 years 11 months ago #171886 by JoomlaWorks
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
  • web-tiki's Avatar Topic Author
  • Offline
  • New Member
More
4 years 11 months ago #171894 by web-tiki
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.

More
4 years 11 months ago #171898 by JoomlaWorks
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.


Powered by Kunena Forum