Making links to post history dynamic