Starting to fix links not saving refs.

Ref #115