A Microsoft file hosting and synchronization service.
Hello Raymond Isola,
I understand why this feels confusing. It really looks like Word is giving the “wrong” file path, especially when you expect a simple local path like C:\Users...
What’s actually happening here is related to how Word works with OneDrive. When your file is saved in OneDrive (even if it’s synced to your computer), Word sometimes treats it as a cloud file first. Because of that, when you insert the file path in the footer using built-in fields, it may show a long https:// link instead of the local path on your PC.
So, the behavior you're seeing is expected — Word currently doesn’t have a way to automatically show the local OneDrive path (like C:\Users...\OneDrive...) in a dynamic footer field. What you can do instead:
Option 1: Use a manual workaround (most reliable)
This is actually the best way if you need the exact local path:
Step 1: Copy the file path
- Open File Explorer
- Find your file
- Right-click > choose Copy as path
Step 2: Paste into Word
- Open your document
Paste the path into the footer (or anywhere you need)
Step 3: Make it clickable
- Highlight the text
- Right-click > Insert Link
- Paste the same path into the Address box
- Click OK
Now you’ll have a working link that opens the file directly from your computer. Just a small note: this is a fixed (static) link, so if the file is renamed or moved, you’ll need to update it manually.
Option 2: Use Word’s built-in field (automatic but limited)
If you prefer something that updates automatically:
- Go to the footer
- Insert this field:
- Press Alt + F9 (if needed)
- Add: { FILENAME \p }
This will show the file name and path.
However, if your file is in OneDrive, it may still show the https:// version. Other user also report Word currently works like that: https://learn.microsoft.com/en-us/answers/questions/5292025/why-cant-i-put-a-usable-file-path-in-the-foote. Also, the field may not update right away — it usually refreshes when you open Print Preview or print the document. Similar case, you can check on: https://learn.microsoft.com/en-us/answers/questions/4997075/footers-in-onedrive-office-365
About the security warning when opening the link. When you click the link, you might see a Microsoft security message. This is normal behavior. If the file is your own and stored on your PC, you can safely continue and open it. I know this isn’t the most ideal setup, especially if you were expecting a clean automatic solution. Your workaround is actually a very practical way to handle it for now.
It may also help to send feedback to Microsoft; this is the kind of scenario they could improve in future updates. Steps:
- Open any Microsoft 365 app (for example, Word).
- Go to Help > Feedback. Or go to File > Feedback (some apps show it there instead).
- In the dialog box, choose the type of feedback (for example “I like something” / “I don’t like something” / suggestion options depending on the app).
- Write what happened, and attach a screenshot if you can (Microsoft says it makes feedback more actionable).
- If offered, allow them to contact you and add your email address (recommended in the article).
- Submit.
I hope this will help with your situation. Please feel free to reach back if you have further update or more questions.
Best Regards,
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment”.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.