How to Make Word Table of Contents Links Open the Current Document
Question details
The user wants Table of Contents (TOC) entries to link internally within the same document instead of displaying external file paths or navigating to other documents.

- Product
- Word
- Device & OS
- not provided
- Scenario
- Clicking a Table of Contents entry opens an external file path or references a different document rather than navigating to the expected local chapter.
- Observed behavior
- Table of Contents entries display or navigate to external file paths, often caused by the presence of RD (Referenced Document) fields.
Ensure all your chapters are consolidated into a single document before updating your Table of Contents, and verify that your chapter titles use standard heading styles.
Remove RD Fields and Rebuild TOC with Heading Styles
Eliminate external Referenced Document (RD) fields and generate a new Table of Contents using standard heading styles to ensure all links stay within the current document.
A Table of Contents usually generates internal links based on heading styles. If it uses RD fields, it will attempt to pull headings from external documents, resulting in file path links.
Press 'Alt + F9' on your keyboard to toggle the display of field codes in your document.
Search the document for any field codes that look like '{ RD "filename.docx" }' and delete them.
Highlight your chapter titles, navigate to the Home tab, and apply standard heading styles such as 'Heading 1' or 'Heading 2'.
Go to the References tab, click 'Table of Contents', and select an automatic style to generate a locally linked TOC.

Create Chapter-Specific Local TOCs Using Bookmarks
If you need individual mini-Tables of Contents for specific chapters within the same document, you can use bookmarks to restrict the scope of the local TOC.
Easily Manage Table of Contents in WPS Writer
WPS Writer provides a highly intuitive way to generate, update, and navigate Tables of Contents. It automatically creates reliable local links to your headings without requiring complex field code configurations.
- 1. Open your document: Launch WPS Writer and open your consolidated document.
- 2. Format headings: Select your chapter titles and apply 'Heading 1', 'Heading 2', or 'Heading 3' from the Styles gallery on the Home tab.
- 3. Insert the TOC: Navigate to the References tab on the top ribbon and click 'Table of Contents'.
- 4. Select an automatic layout: Choose your preferred layout from the dropdown menu to instantly generate a locally-linked TOC.

Frequently Asked Questions
Why does my Table of Contents show a file path instead of a page number?
This typically occurs if the Table of Contents was generated using Referenced Document (RD) fields, which compile headings from external files. It can also happen if the document's hyperlink base is incorrectly pointing to an external directory.
How do I check if my document contains RD fields?
You can reveal all hidden field codes by pressing 'Alt + F9' on your keyboard. Scroll through your document and look for bracketed codes containing the letters 'RD' followed by a file name.
What is the difference between a header and a heading in Word?
A heading is a styled title within your main document text used to organize sections and build a Table of Contents. A header is the repeating margin section at the very top of every page, typically used for page numbers or document titles.




