Body: <p>First, a little background: I created a series of documents, each one representing a chapter in my book. Then I created a book and imported all the documents into it. It seems to be working OK; when I export it as an epub, I can page through all the chapters.</p>
  
  <p>But I'm having a hard time figuring out how to make internal hyperlinks. Actually, I created a hyperlink on the first page of chapter (document) 1, pointing it to a text anchor on the last page of the document. It works.</p>
  
  <p>But when I move the text anchor to a different document, it doesn't work.</p>
  
  <p>The link on page 1 looks like this:</p>
  
  <pre><code>&lt;a href="#_idTextAnchor001" id="A1" title="Link"&gt;LINK&lt;/a&gt;
  </code></pre>
  
  <p>(I inserted an ID, so I can link back to it from my end notes.)</p>
  
  <p>And this is what the text anchor looks like:</p>
  
  I am a TEXT ANCHOR.</p>
  
  <p>I created it with InDesign's Hyperlinks Panel, though I'm doing a lot of work with BBEdit, modifying files in a published epub.</p>
  
  <p>Does anyone have any idea what the problem is or how I can troubleshoot it?</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>I've learned that, when linking between separate HTML files, you have to include the name of the file. So a link in Chapter1.html pointing to Chapter2.html should look something like this:</p>
  
  <pre><code>&lt;a href="Chapter2.html#101" title="Reference"&gt;101&lt;/a&gt;
  </code></pre>
  
  <p>However, my links from Chapter2 back to Chapter1 don't work for some reason. It's probably just some little semantic bug I have to figure out.</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-01-28T02:40:21.463Z
Comments.Text: Should I delete this question? The problem was simply incorrect anchors; I was writing id="#1" instead of id="1".
Comments.UserDisplayName: WordBear
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2020-12-10T22:42:54.930Z
Comments.Text: You might as well answer it yourself. That's allowed. You could expand on it by saying how to handle relative links to files in a folder.
Comments.UserDisplayName: Ray N. Franklin
Tags: <epub><html><editing><indesign>
Title: Internal Links Between InDesign Documents Don't Work
UserDisplayName: WordBear
ThreadText: # Internal Links Between InDesign Documents Don't Work
  
  (Asked by: username_0 on 2017-01-27)
  
  First, a little background: I created a series of documents, each one representing a chapter in my book. Then I created a book and imported all the documents into it. It seems to be working OK; when I export it as an epub, I can page through all the chapters.
  But I'm having a hard time figuring out how to make internal hyperlinks. Actually, I created a hyperlink on the first page of chapter (document) 1, pointing it to a text anchor on the last page of the document. It works.
  But when I move the text anchor to a different document, it doesn't work.
  The link on page 1 looks like this:
  LINK
  
  (I inserted an ID, so I can link back to it from my end notes.)
  And this is what the text anchor looks like:
  
  I am a TEXT ANCHOR.
  I created it with InDesign's Hyperlinks Panel, though I'm doing a lot of work with BBEdit, modifying files in a published epub.
  Does anyone have any idea what the problem is or how I can troubleshoot it?
  EDIT:
  I've learned that, when linking between separate HTML files, you have to include the name of the file. So a link in Chapter1.html pointing to Chapter2.html should look something like this:
  101
  
  However, my links from Chapter2 back to Chapter1 don't work for some reason. It's probably just some little semantic bug I have to figure out.
  
  **Tags:** epub, html, editing, indesign
  
  > **Comments:**
  > **username_0**: Should I delete this question? The problem was simply incorrect anchors; I was writing id="#1" instead of id="1".  
  > **username_1**: You might as well answer it yourself. That's allowed. You could expand on it by saying how to handle relative links to files in a folder.  
  
  ---
  
  ## 0 answers
  
  