CLC-2171 Deal properly with links that are in more than 1 subsection of ...

...the same section

https://jira.media.berkeley.edu/jira/browse/CLC-2171