remove fragements (#) from the uri