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

  Thursday, 01 December 2022
  8 Replies
  460 Visits
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?
more than a month ago
·
#112468
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?

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

more than a month ago
·
#112475
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
more than a month ago
·
#112479
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?

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

more than a month ago
·
#112480
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.
more than a month ago
·
#112482
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?

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

more than a month ago
·
#112483
The htaccess file being used it what was initially generated with J4. I could check further. I didn't compare J3 to J4.
more than a month ago
·
#112503
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.

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

more than a month ago
·
#112606
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.
  • Page :
  • 1
There are no replies made for this post yet.
Be one of the first to reply to this post!