How to Make getURL Output Complete URL (rather than root relative) I'm using getURL() as follows in my Craft template:

{% set sharingImageURL = entry.sharingImage[0].getUrl('socialMedia') %} 


Every time the output is a root relative URL and I'd like it to be a complete URL (including http://www.mydomain.com).

I can't figure out how to make that work. Can I do it with getURL() or is there a different method I should be using? Would appreciate some guidance!

Thanks.
Craft should actually output absolute URLs when using getUrl. But you need to set siteUrl to make this work, so check if you have it set in Settings → General or with a siteUrl property in your general.php config file.