Remove the query string and the anchor of the uri of a link
Refactor the uri cleaning