Recent Topics

1 Dec 28, 2014 02:44    

Hi
Recently, someone pointed me that in notification emails, relative links are not transformed to absolute links. It happens when you link a file and add this link in your post. When you read the email, the link is dead (it's normal, the domain url is missing).

I just update today to 5.2, but I can't really test it without sending an email to everyone. Does someone could confirm this behavior is changed? Or not, if so, what can I do?
Thanks
Mel

2 Jan 02, 2015 18:00

I imagine you mean linking to a local file on your machine or remote file not on the same domain. Is it ok when it is a file from /media/blogs/** on your own site?

3 Jan 08, 2015 08:02

Hi @mel_t,

Please give us more information regarding this sentences:

It happens when you link a file and add this link in your post. When you read the email, the link is dead (it's normal, the domain url is missing).

As mentioned by @amoun above, the URLs to files attached using the Images & Attachments fieldset are properly included in the notification emails, or at least they should. If not, please tell us.

Now, if you are talking about links made manually inside the content ( ej: <a href="/bar/foo.pdf">Foo File</a> ), they should be defined using the static URL because relative URLs won't be automatically transformed ( ej: <a href="http://example.com/bar/foo.pdf">Foo File</a> ).

Regards!

4 Jan 10, 2015 01:47

Exactly, it keep the relative url.

Example:
Email sent :
<p>Une nouvelle version <a href="/media/blogs/2015/suivi_activites_2015_v2.xls?mtime=1418754326">Document</a></p>

So if someone click on this link in email, it throw an error.

I don't think the user writing a post should be aware they have to write a static url (they even don't know what is it). They only choose "with files selected : Insert IMG/link in the post" from the file popup.
For sure, on blog, it's fine, and nobody notice the difference.
Thanks

5 Jan 19, 2015 08:22

@mel_t all right, I understand your concern. The WYSIWYG editor automatically prunes the domain out of the URL. Let's see how can this be managed.

Thanks.


Form is loading...