How to Make getURL Output Complete URL (rather than root relative)
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.