I'm trying to create an EPUB, but the hyperlinks for the Table of Contents isn't exporting correctly from InDesign to EPUB. When I export it to PDF, everything is fine. I can click a heading in the TOC and it will redirect me to the place in the text the link refers to. However, when exported to an EPUB (reflowable or fixed), nothing happens when I click the link. When I look at the html code for that text, the code for the link is there, only the number for the text anchor is missing and the destination itself doesn't have one. While I can manually link them again, I was wondering if there's a reason that the TOC isn't linking.
Found out what was wrong. For some reason, whenever I reset the TOC, the "Make anchor in source paragraph" got unchecked. So, every time I hit update TOC (which I do every time before exporting in case the was a change) it unchecked the box. By going into the settings each and every time I reset the TOC, I can make sure it didn't get unchecked.