On the link tab, there is a drop down list to select the protocol, , https:// etc.... you will need to make sure to enter the full domain and path to the file in the URL section. As long as you enter the full domain and path correctly;
mydomain.com/path/file.php
the link in the email will be written using the full path:
file.php