removes hash from link