Answers.Body: <p>First, one possible thing to look at is using the ASIDE element to contain the footnote. The Kindle way to do footnotes requires this.I used a DIV container which contained <strong>epub:type="footnotes"</strong> and inside that a ASIDE element containing what you want to be in the note. This is just a stab in the dark though. </p>
  
  <p>Here's  a suggestion for a workaround on iBooks.</p>
  
  <p>Perhaps iBooks only does this for internal links, but not for external links. The popup box fills with the internal HTML page you are linking to. This might be a feature, not a bug --- because letting  an HTML fragment appear in the popup is a cool thing though probably not part of the EPUB 3 spec.  </p>
  
  <p>Unfortunately I don't have an ipad handy now or I'd test and report back. But I vaguely remember seeing this before for footnotes on iBooks. </p>
  
  <p>If you are linking to another place in the same ebook, why not just do an ordinary hyperlink in the main text and not a footnote? (If you need to add extra explanation, you can do it in the main text as well). It seems that providing an internal link from the popup is redundant. That's my two cents anyway. </p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-10-28T20:58:29.453Z
Answers.LastActivityDate: 2018-10-28T20:58:29.453Z
Answers.UserDisplayName: idiotprogrammer
Body: <p><a href="https://i.sstatic.net/TJvte.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/TJvte.png" alt="example"></a>Using calibre and epub3 I'm using popup footnotes (with epub:type). In some of the footnotes I present links (ex. a link to Chapter 2) to the main text. This referred text should not be presented in the popup windows itself (se right panel) - the links should direct to other chapters in the ebook (se left panel).</p>
  
  <p>At the moment it seems that the referred text (ex. Chapter 2) are shown directly in the popup window (see right panel). How can I change this, so the links bypasses the popup window?</p>
  
  <p>The problem occurs on a iMac in iBooks 1.16.</p>
  
  <p>Regards, Dan</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-10-27T16:28:47.577Z
Comments.Text: Which reading system are you designing for? iBooks? Kindle?
Comments.UserDisplayName: idiotprogrammer
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-10-27T16:32:46.653Z
Comments.Text: I have a little experience in this area, but I'm not 100% sure what you mean. Are you saying that the content of the footnote in the popup includes an internal link which does not work?
Comments.UserDisplayName: idiotprogrammer
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-10-27T16:38:29.697Z
Comments.Text: I am unable to tell whether your problem is specific to a reading system or just faulty code. Are you aware of the code example in  Section 9.3.12 (page 32) of the Kindle Publishing Guidelines? https://kindlegen.s3.amazonaws.com/AmazonKindlePublishingGuidelines.pdf
Comments.UserDisplayName: idiotprogrammer
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-10-28T07:58:33.013Z
Comments.Text: I have updated my question
Comments.UserDisplayName: Dan
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-10-28T08:05:17.860Z
Comments.Text: Idiotprogrammer: Im using the coding presented in the guidelines and the footnote-popup itself works fine. My problem only concerns the result of the internal links.
Comments.UserDisplayName: Dan
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-10-28T20:33:47.367Z
Comments.Text: (Actually this was what I was afraid you were going to say!) I've seen this problem before -- probably on iBooks. Unfortunately, iBooks is not well-documented and doesn't have a good community of formatters... ).
Comments.UserDisplayName: idiotprogrammer
Tags: <epub><calibre><apple-books><footnotes>
Title: How do I direct links in popup-footnotes directly to main text?
UserDisplayName: Dan
ThreadText: # How do I direct links in popup-footnotes directly to main text?
  
  (Asked by: username_0 on 2018-10-27)
  
  [![example](https://i.sstatic.net/TJvte.png)](https://i.sstatic.net/TJvte.png)Using calibre and epub3 I'm using popup footnotes (with epub:type). In some of the footnotes I present links (ex. a link to Chapter 2) to the main text. This referred text should not be presented in the popup windows itself (se right panel) - the links should direct to other chapters in the ebook (se left panel).
  
  At the moment it seems that the referred text (ex. Chapter 2) are shown directly in the popup window (see right panel). How can I change this, so the links bypasses the popup window?
  
  The problem occurs on a iMac in iBooks 1.16.
  
  Regards, username_0
  
  **Tags:** epub, calibre, apple-books, footnotes
  
  > **Comments:**
  > **username_1**: Which reading system are you designing for? iBooks? Kindle?  
  > **username_1**: I have a little experience in this area, but I'm not 100% sure what you mean. Are you saying that the content of the footnote in the popup includes an internal link which does not work?  
  > **username_1**: I am unable to tell whether your problem is specific to a reading system or just faulty code. Are you aware of the code example in  Section 9.3.12 (page 32) of the Kindle Publishing Guidelines? https://kindlegen.s3.amazonaws.com/AmazonKindlePublishingGuidelines.pdf  
  > **username_0**: I have updated my question  
  > **username_0**: Idiotprogrammer: Im using the coding presented in the guidelines and the footnote-popup itself works fine. My problem only concerns the result of the internal links.  
  > **username_1**: (Actually this was what I was afraid you were going to say!) I've seen this problem before -- probably on iBooks. Unfortunately, iBooks is not well-documented and doesn't have a good community of formatters... ).  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2018-10-28. Score: 0
  
  First, one possible thing to look at is using the ASIDE element to contain the footnote. The Kindle way to do footnotes requires this.I used a DIV container which contained **epub:type="footnotes"** and inside that a ASIDE element containing what you want to be in the note. This is just a stab in the dark though.
  
  Here's a suggestion for a workaround on iBooks.
  
  Perhaps iBooks only does this for internal links, but not for external links. The popup box fills with the internal HTML page you are linking to. This might be a feature, not a bug --- because letting an HTML fragment appear in the popup is a cool thing though probably not part of the EPUB 3 spec.
  
  Unfortunately I don't have an ipad handy now or I'd test and report back. But I vaguely remember seeing this before for footnotes on iBooks.
  
  If you are linking to another place in the same ebook, why not just do an ordinary hyperlink in the main text and not a footnote? (If you need to add extra explanation, you can do it in the main text as well). It seems that providing an internal link from the popup is redundant. That's my two cents anyway.
  
  
  ---
  
  