Fix Word Table of Contents Links Opening External Files
Question details
User needs to stop Word Table of Contents and List of Figures links from opening external file paths or web locations instead of navigating within the local document.

- Product
- Microsoft Word
- Device & OS
- not provided
- Scenario
- Clicking on a TOC or List of Figures link in a shared or downloaded Word document.
- Observed behavior
- Links redirect to an external Dropbox path, a local Downloads folder of the original sender, or another user's file instead of jumping to the correct page in the current document. This behavior also persists and breaks navigation when exporting the document to a PDF.
Ensure you have saved a copy of the document locally on your hard drive, avoiding cloud storage folders like Dropbox, Microsoft Teams, or OneDrive during the troubleshooting process to prevent synchronization conflicts.
Remove External Paths from Field Codes
By revealing the hidden field codes in Word, you can manually delete the incorrect external file paths that are causing the TOC to redirect outside the document.
Microsoft Word generates the Table of Contents using hidden HYPERLINK fields. When documents are shared via cloud services, these fields can sometimes capture absolute external file paths instead of relative internal document anchors.
Open your Word document and press Alt + F9 (Windows) or Option + F9 (Mac) to display the underlying field codes for your document's hyperlinks.
Scroll to your Table of Contents or List of Figures and find the exposed HYPERLINK fields. Look for external file paths pointing to a Dropbox folder, a local C: drive, or a network URL.
Carefully delete the external file path prefix inside the quotation marks, leaving only the internal bookmark anchor (which usually starts with an underscore or HLINK).
Press Alt + F9 (or Option + F9) again to hide the field codes. Select the entire Table of Contents, right-click, and choose 'Update Field' to apply the changes.

Rebuild the Table of Contents Locally
If editing field codes is too complex or there are too many errors, deleting and generating a brand new Table of Contents locally often resolves the path issues.
Update Microsoft Word
Older versions of Microsoft Word may contain bugs related to field code generation when interacting with cloud storage plugins.
Fix and Rebuild Table of Contents Easily with WPS Writer
Avoid messy field code errors and cloud syncing path issues by handling your document editing in WPS Writer. WPS Office provides a streamlined, highly compatible environment to edit DOCX files, manage headings, and instantly generate clean, accurate Tables of Contents that export perfectly to PDF.
- 1. Open the document in WPS Writer: Launch WPS Office and open the affected Word document.
- 2. Remove the broken TOC: Select the malfunctioning Table of Contents and delete it from the page.
- 3. Generate a clean TOC: Go to the 'Reference' tab, click 'Table of Contents', and select an automated style to insert a perfectly linked TOC.

Frequently Asked Questions
Why do my Word TOC links redirect to another user's Downloads folder?
This happens when the document was generated or saved with absolute file paths (linking directly to a specific user's hard drive) rather than relative ones. It is often caused by cloud storage syncing conflicts, such as when multiple users edit a file via Dropbox or Teams without fully downloading it first.
Does this external link issue affect exported PDFs?
Yes. If the underlying HYPERLINK fields in Word contain external paths, exporting to PDF will preserve those broken external links instead of converting them into internal PDF bookmarks. Fixing the field codes in Word will resolve the PDF export issue.
How do I view field codes in Microsoft Word to check the links?
You can toggle field codes on and off by pressing Alt + F9 on Windows or Option + F9 on a Mac. This reveals the raw code behind elements like the Table of Contents, allowing you to see and edit the exact HYPERLINK paths.




