Forum Discussion
Redirect links on Text web part
If a file is moved to another library or folder, is there a way to automatically redirect or update the links pointing to these files?
For example, we have a Text web part with a link to a file. When the target file is moved to another location, the link on the Text web part needs to be manually edited.
I'm hoping there's an easier way to automatically update the links?
- I wrote a comprehensive blog post about this about 2 years ago. The guidance still applies: https://www.computerworld.com/article/3612244/what-you-need-to-know-about-linking-to-files-and-pages-in-sharepoint.html
5 Replies
- I wrote a comprehensive blog post about this about 2 years ago. The guidance still applies: https://www.computerworld.com/article/3612244/what-you-need-to-know-about-linking-to-files-and-pages-in-sharepoint.html
- Tamras1972Iron ContributorThanks. It's the PDF link that are broken after the move but using the path or direct link works and didn't break.
- SvenSieverdingBronze Contributor
HI Tamras1972 ,
you can also just click the three dots on a document and select "Share"
Now switch the Sharing mode from "People in <tenant> with the link can edit" or whatever to
select "People with existing Access".Copy that link.
That link is also durable, so you will have access to that file even if you move the file to a different folder/document library in the same sitecollection.
The "People with existing Access" setting will not change permissions on file.
Best Regards,
Sven- Tamras1972Iron ContributorThanks. Yes, we are using the 'People with existing access' link but the issue is opening the link, via Text webpart, to a blank page after moving the file to another folder. I should have mentioned the links were to PDF files not Office files.
- Tamras1972Iron ContributorI enabled Document ID but now waiting to see how this would work for existing links on web parts. Not sure how long it'll take for me to see the Document ID column in libraries after enabling it though...
https://sharepointmaven.com/how-to-track-documents-in-sharepoint-using-document-id-feature/#:~:text=How%20to%20Activate%20Document%20ID%20in%20SharePoint%201,and%20it%20will%20look%20like%20this%20See%20More.