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.

#115878 Url management in Joomla 4

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 Ryan on Monday, 22 January 2024 10:40 GMT

ant
Hi Ryan
Has anything changed in Joomla 4 for url management?

Before the update from J!3, I used to insert with JCE the links and images in the J2Store and RSForm notification templates and in the code there were relative urls (e.g. /contact or /images/house.jpg), then in the notification emails they were converted to absolute correctly (www.mysite.com/contact or www.mysite.com/images/house.jpg).

Since I switched to Joomla 4 the urls remain relative, so the links are not correct and the images are not displayed.

Regards

Ryan
See the URL Conversion option in Editor Profiles -> Editor Parameters -> Cleanup & Output:

https://cdn.joomlacontenteditor.net/tmp/115878-url-management-in-joomla-4.jpg

Ryan Demmer

Lead Developer / CEO / CTO

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

ant
Thanks Ryan, but I would like to understand what has changed from the past because before this problem was not there, notifications came for years with links and images in place. Do I need to manually correct all the urls created before the switch to Joomla 4?

Ryan
Nothing has changed. The option to set Relative or Absoute URLs has always existed, with Relative the default. The "None" option was added some time ago.

then in the notification emails they were converted to absolute correctly (http://www.mysite.com/contact or http://www.mysite.com/images/house.jpg).


Is it not the email extensions (J2Store and RSForm) that are doing this conversion?

Ryan Demmer

Lead Developer / CEO / CTO

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

ant
I wrote to RSJoomla support, this is the reply:
Please refer at the following related article:
https://www.rsjoomla.com/support/documentation/general-faq/embedded-links-are-not-working.html

So I wrote again:
Yes. I know that setting, but why it worked fine for years and now I have to change it from relative to absolute?

The reply:
Unfortunately we can't provide support for JCE related inquiries.

Ryan
The Relateive URLs setting determines how relative URL values are treated when content is saved. If the option was set to Absolute, then content saved with this setting would have aboslute urls. These values would only change back to relative if the option itself was changed, and the article was edited.

So, going forward, set the Relative URLs option to Absolute, but do this in a new profile that is assigned to these extensions only, and any content created using this profile will save with absolute url values.

Ryan Demmer

Lead Developer / CEO / CTO

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

ant
Thanks Ryan, it's all clear how that setting works. I can't understand why from one moment to the next, without changing any settings, a link that has worked for years and an image that used to display normally no longer work.

Anyway it is not a big problem, I will edit the notification templates again.
Thanks

Ryan
I really wish email and newsletter extension developers would include relative to absolute url conversion in their extensions, when the email is sent out. It's not difficult to do, and removes the need to always have the urls absolute in the email content when creating it.

Ryan Demmer

Lead Developer / CEO / CTO

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