use request.url instead of request.path