Fixing paths to always have the pageRoot prepended