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.

#112465 ?view=article&id... ect. in article link URL

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 karendunne on Monday, 12 December 2022 22:27 GMT

karendunne
I'm having an issue with using links to an article within an article (not a link to a menu item). The link generated include a string such as /hrrmc-mp?view=article&id=657:hrrmc-site-plan&catid=101:hrrmc-facility-mp, rather than an SEF URL.

.htaccess is in place
global config is set to SEF URLs with URL rewriting enabled

I can't think of anywhere else to check so I thought I'd check with you to see if it could be coming from a setting in JCE that I am not aware of. Does this look familiar to you?

Ryan
The link generated include a string such as /hrrmc-mp?view=article&id=657:hrrmc-site-plan&catid=101:hrrmc-facility-mp, rather than an SEF URL.


Did you create the link using the JCE Link dialog? Is it to an internal article on the site?

Do you get the same link if you use the Article button below the editor to select and insert the link?

Ryan Demmer

Lead Developer / CEO / CTO

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

karendunne
The link was created using the JCE link dialog. It is an internal article on the site.

The article button below the editor was disabled. But, it's enabled now and I tried that as a comparison. Both create a long string. Here's the example:

https://www.rtaarchitects.com/test-article-links

from JCE link dialog: https://www.rtaarchitects.com/test-article-links?view=article&id=657:hrrmc-site-plan&catid=101:hrrmc-facility-mp
from article button: https://www.rtaarchitects.com/test-article-links?view=article&id=657&catid=101

Ryan
from JCE link dialog: https://www.rtaarchitects.com/test-article-links?view=article&id=657:hrrmc-site-plan&catid=101:hrrmc-facility-mp
from article button: https://www.rtaarchitects.com/test-article-links?view=article&id=657&catid=101


These links are essentialy the same, th eJCE one just includes the article and category alias in the link.

It looks like an issue with the routing. Is this link associated with a menu item, either directly or by category?

Ryan Demmer

Lead Developer / CEO / CTO

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

karendunne
The link is not associated with a menu item directly, nor a category blog type. The article is associated with a category, but I don't think that's what you're asking.

This change occurred with the site on Joomla 4. It worked as an SEF in J3. So, it may be that J4 has a different routing structure that I wasn't aware of. I thought there might be something I didn't set up correctly in JCE when I installed it on the J4 site.

Ryan
It worked as an SEF in J3. So, it may be that J4 has a different routing structure that I wasn't aware of.


Is it the same htaccess file as the J3 site? Perhaps J4 SEF requires changes to the htaccess?

Ryan Demmer

Lead Developer / CEO / CTO

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

karendunne
The htaccess file being used it what was initially generated with J4. I could check further. I didn't compare J3 to J4.

Ryan
I have discussed this issue with another experienced Joomla extension developer, and wer have concluded that the strange SEF URL conversion is the result of the new SEF routing in Joomla 4. As SEF urls are created with reference to the alias of the menu items the article is associated with, if the article is not assigned to a menu, then a SEF url cannot be created (the SEF url is not created from the article/category alias).

One solution suggested was to a revert to a Joomla 3 style of SEF URLs. To do this go to Content -> Articles and click on the Options button, then on the Integration tab, and set the Remove IDs from URLs to No.

Another more complex solution, but one that guarantees full SEF urls, is to create a hidden menu and assign the articles to it. The menu would not show up in the site layout, but would create correct SEF urls for each article assigned to it.

Ryan Demmer

Lead Developer / CEO / CTO

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

karendunne
Thank you for investigating and the suggestions. I see what you mean. For this particular scenario, it seems using an articles category module for links (more SEF) or the hidden menu would work.