Updated link function for track collection (Fixed bug in firefox)