Use the same logic adding data directory to URLs in reports
Readded missing link code