Safely construct links in the left-hand navigation

Fixes #21.