->req->uri is a more robust way to do it per mst's suggestion