File Sharing Problems

Fix Relative Links Not Working in Word for the Web

Phi Hung VoPhi Hung Vo Oct 28, 2026 869 views

Question details

The user needs to make document hyperlinks function correctly when viewing or editing files online.

How to Fix Relative Links Not Working in Word for the Web
Product
Word for the Web
Device & OS
not provided
Scenario
Clicking links to other documents after saving files to OneDrive or SharePoint and opening them in a web browser.
Observed behavior
Relative hyperlinks that work perfectly in the desktop version are treated as broken HTTP addresses (e.g., http://Document 2.docx). Advanced hyperlink field shortcuts like CTRL+F9 or ALT+F9 are also completely unresponsive in the web browser.
Before you start

Verify that your documents are fully synced to OneDrive or SharePoint, and ensure you have the desktop version of your word processor installed for advanced link editing.

Solution 1Recommended

Use Absolute URLs for Web Compatibility

Replace local relative paths with absolute SharePoint or OneDrive URLs to ensure they resolve correctly in the browser.

Word for the web operates in a browser sandbox and cannot resolve local file structures or relative paths like a desktop application does. By providing the full web address of the target file, you bypass the relative path limitation.

1
Get the exact document link

Navigate to your OneDrive or SharePoint document library in your browser. Locate the target document, click the 'Share' or 'Copy Link' button, and copy the full URL.

2
Edit the broken hyperlink

Open your source document in Word. Highlight the text containing the broken link, right-click it, and select 'Edit Link'.

3
Paste the absolute URL

Delete the relative path (e.g., 'Document 2.docx') from the address field, paste the full URL you copied earlier, and click 'OK'.

Use Absolute URLs for Web Compatibility
Link Maintenance: Remember to update these absolute URLs if you ever move the target documents to a different folder or rename them in SharePoint/OneDrive.
Free Microsoft Office alternative

Experience Flawless Document Linking with WPS Office

Since web-based word processors often struggle with advanced document fields and relative file paths, switching to a lightweight, fully-featured desktop application like WPS Office ensures your links and formatting work exactly as intended. WPS Office offers a familiar interface and seamless compatibility without the heavy subscription costs.

  1. 1. Download the Free Suite: Visit the official WPS website to download and install the lightweight WPS Office suite on your computer.
  2. 2. Open Your Documents: Launch WPS Writer and open your locally synced OneDrive or SharePoint documents directly.
  3. 3. Edit Links Natively: Insert, test, and manage your relative hyperlinks with full confidence in a stable desktop environment.
Seamless format compatibility with Microsoft Word (.docx) documentsRobust desktop support for relative hyperlinks and advanced field codesFamiliar UI that requires zero learning curve for seamless migrationFree, lightweight alternative to expensive Microsoft Office subscriptions
microsoft office alternative - wps office

Frequently Asked Questions

Why does Word for the web turn my relative link into an HTTP address?

Word for the web runs in a browser environment that does not recognize local computer folder structures. When it encounters a relative link, it attempts to resolve it as a web URL, prefixing it with 'http://', which causes the link to break.

Can I use field codes like ALT+F9 to fix hyperlinks in Word for the web?

No, advanced field code keyboard shortcuts such as CTRL+F9 and ALT+F9 are not supported in the web version of Word. You must open the document in a full desktop application to manipulate these hidden field codes.

How do I ensure my links work for team members who only use the web version?

To guarantee your links work for users restricted to the browser version, you must use absolute URLs. This means copying the full web sharing link from OneDrive or SharePoint and pasting it as the hyperlink address, rather than relying on relative file names.