Extract and store `hal` `previous` and `next` links