Fix link generation and Disqus comment thread IDs.