correcting links from /data/ to /pages/