BUGFIX: history link doesn't work on deleted posts