Dynamically determine domain to use when providing shorturl link.