i think for removeBasePath just substr(strlen($this->menuRoot), $id) should be fine. or is it more complicated than that?

what is splicePath doing exactly?