Added logic related to parsing internal download links

Changes to be committed: