Answers.Body: <p>Thanks to Andrew Fairlie for pointing out I need to make sure Assets in this volume have public URLs set</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-07-10T10:30:44.533Z
Answers.LastActivityDate: 2018-07-10T10:30:44.533Z
Answers.UserDisplayName: user2569
Body: <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>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-07-10T10:22:38.697Z
Comments.Text: Does your volume has public urls? That's mostly the issue when someone asks this question
Comments.UserDisplayName: Robin Schambach
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-01-21T15:21:27.347Z
Comments.Text: Did you try to add the relative path https://www.domain.com/globalassets/imagename.svg
Comments.UserDisplayName: user11493
Tags: <assets><craft3><globals>
Title: Getting image url from globals asset field
ThreadText: # 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 %}
  
  <a href="/">
      <img class="logo" src="{{ image.getUrl() }} alt="{{ image.title }}">
  </a>    
  
  ```
  
  **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
  
  
  ---
  
  