<p>Changing the Settings > Assets > Sources url fixed the problem globally. Thanks for the help, aran. </p>

CC BY-SA 3.0
2015-10-28T19:32:10.850Z
2015-10-28T19:32:10.850Z
glider
<p>I'm trying to setup a page where the html will be copied into Mailchimp for a newsletter. The images need to have a full path url. How would I construct the code to provide this? So instead of "/images/something.jpg" it would be "<a href="http://domain.com/images/something.jpg" rel="nofollow">http://domain.com/images/something.jpg</a>".</p>

<pre><code>{% set imageTransform = { width: 520, height: 240 } %}
{% for image in entry.headerPhoto %} 
 &lt;img src="{{ image.getUrl(imageTransform) }}"  alt="{{ entry.title }}" style="display:block;" &gt;   
{% endfor %} 
</code></pre>

<p>If there is text inside rich text fields is there any way to output the full url to those images too? </p>

CC BY-SA 3.0
2015-10-28T18:08:19.403Z
Do your images currently not have a full url? Normal output should provide a full url.  Are you using a local source or a third party source for you images like AmazonS3? If you setup your assets source in the CP *(Settings > Assets > Sources)* you can set the URL Prefix which should prefix all your asset urls.
a-am
<image-transforms>
Full url to image transform
# Full url to image transform

(Asked by: username_0 on 2015-10-28)

I'm trying to setup a page where the html will be copied into Mailchimp for a newsletter. The images need to have a full path url. How would I construct the code to provide this? So instead of "/images/something.jpg" it would be "http://domain.com/images/something.jpg".
{% set imageTransform = { width: 520, height: 240 } %}
{% for image in entry.headerPhoto %} 
    
{% endfor %} 

If there is text inside rich text fields is there any way to output the full url to those images too?

**Tags:** image-transforms

> **Comments:**
> **username_1**: Do your images currently not have a full url? Normal output should provide a full url.  Are you using a local source or a third party source for you images like AmazonS3? If you setup your assets source in the CP *(Settings > Assets > Sources)* you can set the URL Prefix which should prefix all your asset urls.  

---

## 1 answers

### Answer by username_0 on 2015-10-28. Score: 2

Changing the Settings > Assets > Sources url fixed the problem globally. Thanks for the help, aran.


---

