constructUrl returns bad URL when the ID not presents in the request.