Convert native links to reference

Blog with 800 posts. prev/next as native link. I want to convert it to the collection reference. Any idea how do it automatically?