File Format & Compatibility

Fix Word Removing Named Destinations from Local PDF Links

Algirdas JasaitisAlgirdas Jasaitis Nov 22, 2026 868 views

Question details

The user needs a Word hyperlink to open a PDF at a named destination without losing its fragment.

Fix Word Removing Named Destinations from Local PDF Links
Product
Microsoft Word
Device & OS
not provided
Scenario
A Word document contains a file:// hyperlink to a local PDF with a #nameddest fragment.
Observed behavior
The hyperlink appears correct in Word, but the fragment is removed when the link opens in the browser.
Before you start

Confirm the PDF's named destination and identify a web server where the intended readers can access the PDF. Check the complete URL in the browser and PDF viewer your readers will use.

Solution 1Recommended

Link to the PDF over HTTP or HTTPS

Use a web-hosted PDF when a Word hyperlink must retain a named destination.

Office applications may not reliably preserve fragments in local file:// hyperlinks. A web URL avoids relying on that local-file behavior, although named-destination support still depends on the browser or PDF viewer.

1
Host the PDF

Upload the PDF to a web server that the intended readers can access, and copy its HTTP or HTTPS address.

2
Add the destination

Append the named-destination fragment to the PDF address, for example, https://example.com/document.pdf#nameddest=1. Replace the example address and destination with your own.

3
Test the complete URL

Paste the full URL into the target browser's address bar and confirm that the PDF opens at the intended destination.

4
Update the Word hyperlink

In Word, select the link text, press Ctrl+K or choose Insert > Link, and enter the complete HTTP or HTTPS URL in the address field. Save the document and test the link.

Link to the PDF over HTTP or HTTPS
Encoding may not solve local links: Replacing # with %23 did not work in the reported case and may not reliably preserve a named destination in a local PDF link.
Free Microsoft Office alternative

Edit documents with hyperlinks in WPS Writer

WPS Office is a free, lightweight alternative with a familiar interface and support for Microsoft Office formats, making it easy to move existing documents. Use WPS Writer to edit document hyperlinks, but test PDF named-destination links in the intended browser; WPS does not fix Word's local-link behavior.

Edit document text and hyperlinks in WPS WriterOpen and save Microsoft Word DOCX filesWork in a familiar interface that eases migration from Microsoft OfficeUse a free, lightweight office suite
microsoft office alternative - wps office

Frequently Asked Questions

Why does my PDF link look correct in Word but open without the destination?

Word or another Office application may strip the # fragment when opening a local file:// hyperlink. Check the address that opens in the browser, then try an HTTP or HTTPS URL for the PDF.

Can I replace the pound sign with %23?

That did not work in the reported case and is not a reliable way to preserve a local PDF named destination. Instead, use a web-hosted PDF URL with the #nameddest fragment and test it.

How do I change the hyperlink address in Word?

Select the link text and press Ctrl+K or choose Insert > Link. Enter the full PDF URL, including its #nameddest fragment, in the address field, then save and test it.

Will every browser open a PDF at its named destination?

Not necessarily. Support depends on the browser and its PDF viewer. Paste the complete HTTP or HTTPS URL into the target browser and verify that it opens at the intended destination.