Images placed in content body with relative urls are not converted, so they show up broken in messages.

How to address this?

Thanks

Comments

jvieille’s picture

Update:

Node related path are correctly converted to absolute paths: Only images get broken.
For example, this link:
<img alt="" src="/sites/see.shareontheweb.com/files/editorimages/confrege2012.jpg" style="width: 601px; height: 326px; " />

is rendered in both preview (which makes it ok) and message (which makes in broken) like this:
<img alt="" src="/sites/see.shareontheweb.com/files/editorimages/confrege2012.jpg" />

jonlibrary’s picture

You may be able to use the pathologic module to ensure the paths used in your nodes are absolute. The pathologic page includes links to similar modules.

Mike Wacker’s picture

Component: Documentation » Code
Category: support » bug
Status: Active » Fixed

http://drupalcode.org/project/sunmailer.git/commit/8fe29c1

Taking a dependency seems like overkill this problem. I updated the regex to capture this particular link.

Mike Wacker’s picture

Copy-and-paste error in the last commit, fixed with http://drupalcode.org/project/sunmailer.git/commit/ed7dd24

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Mike Wacker’s picture

Version: 6.x-2.0-beta2 » 6.x-1.x-dev
Status: Closed (fixed) » Patch (to be ported)

Re-opening to port this patch back to 6.x-1.x-dev