Fixing broken links on history pages