turn linklist into link attributes, where only one link is used