fixing links on permalink pages