Fix things that broke when moving to /pages/