Properly update URL when switching content items within a leaf topic.

Also, do nothing when clicking on a node in the topic tree that's already
been selected.