Refactor link fixup code on landing page.