Use the custom URL for the admin store if one exists

When returning links to customers and to orders, use the URL for the admin store. It might have been customized. For more info, in Magento admin go to System -> Configuration -> Admin -> Admin Base URL.