Removed fragment part of the uri (may cause http 400 bad request)