Added function to fix links to use web root