Get full url of asset, not just the path I'm trying to output the full asset URL. Using Craft 3.0.0-RC7.1

In .env:

ASSETS_BASE_PATH=/Users/user/code/sitename/web
ASSETS_BASE_URL=http://sitename.test


In config/volumes.php:

'siteAssets' =&gt; [
    'path' =&gt; getenv('ASSETS_BASE_PATH') . '/assets/images',
    'url' =&gt; getenv('ASSETS_BASE_URL') . '/assets/images',
],


In my template:

&lt;meta property="og:image" content="
{{ entry.socialSharingImage.one.getUrl('socialSharing') }}
" /&gt;


Output:

&lt;meta property="og:image" content="
/index.php?p=actions/assets/generate-transform&amp;amp;transformId=58"&gt;


As you see, no site url at the start. Any ideas?

It seems the getUrl() method returns the path. Prepending it with {{ siteURL }} creates two /'s e.g. http://sitename.test//asseturl.jpg. Same results in dev and production.

Thanks!
You can slice the / from the end of {{ siteUrl }} and combine it with getUrl relative path:

&lt;meta property="og:image" content="{{ siteUrl|slice(0,-1) }}{{ entry.fieldName.one().getUrl('kafel620') }}"&gt;


This will produce expected path:

&lt;meta property="og:image" content="http://site.local/assets/images/ramPamPam/headers/_kafel620/tagiatelle.jpg"&gt;