Fixes the links in the history file.