update pages for relative urls