Search code examples
htmlepub

Can't Naviagate to Desired Page in Epub on clicking Table Of Contents


I am creating an ePub file which includes the Table Of Contents created manually. In the Table Of Contents HTML Page, I have given the link for the pages as

<a href ="../Text/html2.xhtml#SecondBookmark">Chapter 2</a>

But after creating the ePub file, I can't able to navigate to the page. It is redirecting to a page https://calibre-internal.invalid/Text/html2.xhtml. Is there any solution for this?


Solution

  • The reason for not navigating to the page is the folder path. Instead of specifying the complete folder path, it is enough that we give only the file name in the href attribute. For example,

    <a href ="html2.xhtml#SecondBookmark">Chapter 2</a>