Fix Relative Links Not Working in Word for the Web
Question details
The user needs to make document hyperlinks function correctly when viewing or editing files online.

- 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.
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.
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.
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.
Open your source document in Word. Highlight the text containing the broken link, right-click it, and select 'Edit Link'.
Delete the relative path (e.g., 'Document 2.docx') from the address field, paste the full URL you copied earlier, and click 'OK'.

Open and Edit the File in Desktop Word
Bypass web app limitations by forcing the document to open in the full desktop client where relative links and field codes are natively supported.
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. Download the Free Suite: Visit the official WPS website to download and install the lightweight WPS Office suite on your computer.
- 2. Open Your Documents: Launch WPS Writer and open your locally synced OneDrive or SharePoint documents directly.
- 3. Edit Links Natively: Insert, test, and manage your relative hyperlinks with full confidence in a stable desktop environment.

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.




