removes double link for url case