If an entry in the TOC contains a link (such as a link in a section title), the link should be removed. This applies to both internal and external links. It's not possible to navigate to the link from the entry in the TOC since the click action is overridden by the link to the section title. Therefore, it serves no purpose and should be removed. In doing so, it avoids confusion about why the entry (or part of it) appears as link.
If an entry in the TOC contains a link (such as a link in a section title), the link should be removed. This applies to both internal and external links. It's not possible to navigate to the link from the entry in the TOC since the click action is overridden by the link to the section title. Therefore, it serves no purpose and should be removed. In doing so, it avoids confusion about why the entry (or part of it) appears as link.