Expand function now returns all intermediate urls