You need to be logged in to post in the forum - Log In

An active JCE Pro Subscription is required to post in the forum - Buy a Subscription

Support is currently Offline

Official support hours
Monday to Friday
09:00 - 17:00 Europe/London (BST)

Please create a new Ticket and we will get back to you as soon as we can.

#108101 Itemid in article link

Posted in ‘Editor’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Latest post by Joris on Friday, 25 June 2021 09:50 BST

Joris
In the past, an article link (via Insert Link Dialog > Content) did not receive an itemid (unlike the menu link via Insert Link Dialog > Menu). Presumably Joomla provided the correct menu link in the front end, based on the menu ordering I thought.

Since the last version (or at least since 2.9.8) such an itemid is unfortunately added in the url, and often even with a wrong itemid (homepage, while it concerns a sub-sub-category article to which a separate menu item refers).

To me this is unwanted behavior, maybe a bug. How's that for JCE?

By the way, my customers use those content links to create an anchor link (making use of the File Browser), which unfortunately does not work with a menu link.

Thanks and regards,
Joris

Ryan
In the past, an article link (via Insert Link Dialog > Content) did not receive an itemid (unlike the menu link via Insert Link Dialog > Menu). Presumably Joomla provided the correct menu link in the front end, based on the menu ordering I thought.


The Link Dialog has always provided an itemid for links created using the Content list, and this is because JCE uses the Joomla API to create the link, which when given the category id and article id, returns the full link with the Itemid (the menu associated with the link, or the Home menu id if the link is not assigned to a menu).

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

Ryan
Actually, I stand corrected, JCE has not always included the itemid in the link, becuase the Joomla API methods used ContentHelperRoute::getArticleRoute, did not.

In a recent update, a different API method was used to create the link, to maintain compatability with changes in Joomla 4, and it appears that this is now adding the itemid to links created via that API method.

I will look into this and post a fix soon.

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

Ryan
Please try JCE Pro 2.9.9 Beta - https://www.joomlacontenteditor.net/downloads/editor/pro/development

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

Joris
This is solved. Thank you Ryan.