<p>Thanks to Andrew Fairlie for pointing out I need to make sure Assets in this volume have public URLs set</p>

CC BY-SA 4.0
2018-07-10T10:30:44.533Z
2018-07-10T10:30:44.533Z
user2569
<p>I can retrieve only the image title from the below code, I can't see why the image URL is showing as empty? its a global handle 'brand' and asset field 'logo':</p>

<pre><code>{% set image = brand.logo.one %}

&lt;a href="/"&gt;
    &lt;img class="logo" src="{{ image.getUrl() }} alt="{{ image.title }}"&gt;
&lt;/a&gt;    
</code></pre>

CC BY-SA 4.0
2018-07-10T10:22:38.697Z
Does your volume has public urls? That's mostly the issue when someone asks this question
Robin Schambach
CC BY-SA 4.0
2021-01-21T15:21:27.347Z
Did you try to add the relative path https://www.domain.com/globalassets/imagename.svg
user11493
<assets><craft3><globals>
Getting image url from globals asset field
# Getting image url from globals asset field

(Asked by: username_0 on 2018-07-10)

I can retrieve only the image title from the below code, I can't see why the image URL is showing as empty? its a global handle 'brand' and asset field 'logo':
{% set image = brand.logo.one %}

**Tags:** assets, craft3, globals

> **Comments:**
> **username_1**: Does your volume has public urls? That's mostly the issue when someone asks this question  
> **username_2**: Did you try to add the relative path https://www.domain.com/globalassets/imagename.svg  

---

## 1 answers

### Answer by username_0 on 2018-07-10. Score: 2

Thanks to Andrew Fairlie for pointing out I need to make sure Assets in this volume have public URLs set


---

