This is considered a security risk. The file link would actually point to a file on your workstation, not the server. Most browsers won't allow this anymore which is why you are probably getting different behavior now. If you want to make this work you will need to modify your browser's security settings.
The correct syntax will vary by browser but will look something like this, "file:///C:/TEST/text.txt"
Here is a related discussion on stackoverflow