Swap positions of the document and link