Fix Broken Links When Renaming SharePoint Documents
Question details
The user wants to know how to rename files in a SharePoint document library without breaking existing links on SharePoint intranet pages.

- Product
- SharePoint
- Device & OS
- not provided
- Scenario
- Building a modern SharePoint intranet and testing file renaming behavior before uploading and linking hundreds of documents.
- Observed behavior
- Renaming a PowerPoint file preserves the link on the SharePoint page, but renaming a PDF file breaks its link.
Before renaming files in bulk across your intranet, determine the file types you are working with, as SharePoint handles Office files and non-Office files (like PDFs) differently when their URLs change.
Enable the Document ID Service in SharePoint
Activating the Document ID service ensures that all files are assigned a unique identifier, making links robust even if the files are renamed or moved.
By default, SharePoint tracks Office documents (Word, Excel, PowerPoint) dynamically, which is why renaming a PowerPoint file did not break the link. However, static files like PDFs rely on their exact URL path.
The Document ID service assigns a permanent, unique URL to every document in your site collection, bypassing the reliance on the file's name or folder path.
Click the gear icon (Settings) in the top-right corner of your SharePoint site, select 'Site information', and then click on 'View all site settings'.
Under the 'Site Collection Administration' section, click on 'Site collection features'.
Scroll down the list until you find 'Document ID Service' and click the 'Activate' button next to it.

Manually Update Links for Non-Office Files
If you cannot use the Document ID service, you will need to manually update page links whenever a non-Office file like a PDF is renamed.
Manage and Edit Your Intranet Documents with WPS Office
While resolving SharePoint intranet linking issues, you need a reliable, lightweight suite to create and edit your documents. WPS Office is a powerful alternative that perfectly handles your daily office tasks without the hefty subscription fees.
- 1. Download and Install: Get WPS Office for free from the official website and install it on your device.
- 2. Open Your Documents: Open your Word, Excel, PowerPoint, or PDF files directly within the WPS Office suite.
- 3. Edit and Save: Make your changes using the familiar interface, then save your documents in standard Microsoft formats before uploading them back to SharePoint.

Frequently Asked Questions
Why do PDF links break when renamed in SharePoint, but Word documents do not?
SharePoint deeply integrates with Microsoft Office Online apps, allowing it to track Office files (Word, Excel, PowerPoint) using a unique internal identifier. Non-Office files, like PDFs, typically rely on the static file path URL, so changing the file's name changes its URL and breaks the link.
Does moving a file to a different folder in SharePoint also break the link?
Yes, moving a non-Office file to a different folder will change its URL path and break standard static links. Office files may still resolve correctly if moved within the same library, but to ensure all links survive file movements, you should enable the Document ID Service.
How do I ensure intranet links never break when files are updated?
The best practice is to activate the Document ID Service in Site Collection Features. This generates a unique, permanent link for every document. You should copy and use this Document ID link on your intranet pages rather than the standard URL path.




