Forum Discussion
Hyperlinks to PDF files on SharePoint Online
- Jun 17, 2022
RehmanR Try below steps, it gives me the file URL without filename in it.
- Go to document library
- Select document for which you need the URL/link
- Click on Copy link option
- Choose option like: People in your tenant with the link can view and click "Copy".
It gives me the correct URL as per the Type 1.
Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.
RehmanR Try below steps, it gives me the file URL without filename in it.
- Go to document library
- Select document for which you need the URL/link
- Click on Copy link option
- Choose option like: People in your tenant with the link can view and click "Copy".
It gives me the correct URL as per the Type 1.
Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.
- RehmanRJun 17, 2022Copper Contributor
Thanks Ganesh. It helped me figure out why the link structure changed. I was using the same method as you described previously but at some point I started using "People with existing access" which results in filename dependent links. I never realized this would be the issue. Now we can share read only links without worrying that a change in filename will break the links.
- ganeshsanapJun 17, 2022MVP
RehmanR Great, glad it worked for you!
Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.