Fix relative pages breaking