restore behaviour of links from index, allowing for indexing of elements without a head which are not divs