Fix path problems for pages that are in a subfolder.