I have a button which redirects to a url. I want to avoid hardcoding the domain though since we have sandboxes etc. I want something like https://{{$Site.Domain}}/restofurl.
$Site.Domain doesn’t work like for visualforce pages though. How do I get the domain or even just the organization sub domain in .salesforce.com?
