Fixed contents navigation links when filtered.

Resolves issue #169.