PDF Editing Issues

How to Fix PDF Links Opening the Wrong Page or Dropping URL Fragments

Amos GikundaAmos Gikunda Nov 5, 2026 870 views

Question details

The user needs to fix a PDF hyperlink that strips the URL fragment and redirects to an incorrect page when clicked.

How to Fix PDF Links Opening the Wrong Page or Dropping URL Fragments
Product
PDF
Device & OS
not provided
Scenario
Clicking a hyperlink within a PDF document exported from software like InDesign or created in a PDF editor.
Observed behavior
The link fails to load the specified URL fragment (such as an anchor tag like #top), reducing the address to the main website homepage instead.
Before you start

Ensure you have the target URL copied correctly without any formatting errors, and verify that the base URL works directly in your web browser.

Solution 1Recommended

Remove the URL Fragment from the Hyperlink

Edit the link properties to delete the anchor tag or fragment, ensuring the base URL loads correctly.

PDF readers often pass hyperlink requests directly to the operating system's default browser handler. During this handoff, URL fragments (the portion of a URL starting with '#') are sometimes stripped, causing the browser to load the homepage or a 404 error instead of the exact section intended.

To resolve this, you can manually edit the link in your PDF to point to the base URL.

1
Open the PDF document

Launch your PDF editor and open the document containing the broken hyperlink.

2
Access the link editing tool

Select the 'Edit PDF' or 'Link' tool from the main navigation or edit toolbar.

3
Edit the hyperlink properties

Double-click the problematic hyperlink on the page to open its properties or destination settings.

4
Modify the destination URL

Locate the destination URL field and delete the fragment (e.g., '#top') from the end of the web address.

5
Save and test

Save the changes to your PDF file, then click the link to verify it correctly opens the intended base webpage.

Remove the URL Fragment from the Hyperlink
Link Verification: After removing the fragment, test the link across multiple PDF readers to ensure broad compatibility for all users receiving your document.
Effortless PDF Editing

Edit and Fix PDF Links Easily with WPS Office

WPS Office provides a comprehensive PDF editor that allows you to quickly manage, modify, and fix broken hyperlinks in your documents without needing expensive software.

  1. 1. Open your PDF: Launch WPS Office and open the PDF file containing the links you want to modify.
  2. 2. Select the Edit tab: Navigate to the 'Edit' tab located at the top of the interface.
  3. 3. Use the Link tool: Click on 'Link' and select 'Add/Edit Link' to make the document's hyperlinks selectable.
  4. 4. Update the URL: Double-click the target link, update the web address to remove problematic URL fragments, and save your document.
Easily add, edit, or remove hyperlinks and URL targets in PDF files.Fully compatible with standard Adobe Acrobat PDF formats.Lightweight software with an intuitive, user-friendly interface for effortless document management.
QA img-9

Frequently Asked Questions

Why does my PDF hyperlink drop the '#' symbol and everything after it?

This happens because many PDF readers hand off the URL to the operating system's default browser handler. In some software environments, URL fragments (like '#top') are stripped during this handoff for security or parsing reasons.

Can I reliably link to a specific section of a webpage from a PDF?

While standard base URLs work perfectly across all PDF viewers, URL fragments linking to specific webpage sections are highly dependent on the user's specific PDF reader and default browser. For maximum compatibility, it is usually more reliable to link to the base page URL.

How do I fix links that export incorrectly from InDesign?

You should check the Hyperlinks panel in InDesign before exporting. If an anchor or URL fragment still causes issues in the final exported file, open the exported PDF in a PDF editor like WPS Office and manually update the URL address.