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

...the same section

https://jira.media.berkeley.edu/jira/browse/CLC-2171

QA branch version of #1274