another take at fixing links in pages