Update method signature for Nesta's path_to helper