# Copy link to document from one drive / sharepoint vs using entire address to document

**URL:** <https://community.thunk.ai/t/copy-link-to-document-from-one-drive-sharepoint-vs-using-entire-address-to-document/153>\
**Category:** General Questions\
**Created:** [July 17, 2025, 8:13pm UTC](https://community.thunk.ai/t/copy-link-to-document-from-one-drive-sharepoint-vs-using-entire-address-to-document/153 "2025-07-17T20:13:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Matt\_THUNK](https://yyz1.discourse-cdn.com/flex003/user_avatar/community.thunk.ai/matt_thunk/32/118_2.png) [@Matt\_THUNK](https://community.thunk.ai/u/Matt_THUNK)\
**Post date:** [July 17, 2025, 8:13pm UTC](https://community.thunk.ai/t/copy-link-to-document-from-one-drive-sharepoint-vs-using-entire-address-to-document/153/1 "2025-07-17T20:13:24Z")

</div>

In o365 you can right click \> one drive \> copy link …

I have found that when I copy this link into a thunk it has issues getting the “href” friendly name. When I follow the link though, and copy the address link from the browser, drop it in the thunk - it seems to function better. Maybe it’s just me, but I wanted to point this out if other users are experiencing it. I don’t recall have this issue when doing similar things with google workspace.

---

<div class="post-metadata">

**Author:** ![praveen-Thunk.AI](https://yyz1.discourse-cdn.com/flex003/user_avatar/community.thunk.ai/praveen-thunk.ai/32/10_2.png) [@praveen-Thunk.AI](https://community.thunk.ai/u/praveen-Thunk.AI)\
**Post date:** [July 17, 2025, 9:19pm UTC](https://community.thunk.ai/t/copy-link-to-document-from-one-drive-sharepoint-vs-using-entire-address-to-document/153/2 "2025-07-17T21:19:10Z")

</div>

Hmm, interesting. Thanks for flafgging this Matt.

We have logic to unpack different file URL formats. Perhaps we’re messing up on the one that comes from one drive \> copy link.  
Let’s look into it.  
@Galex_Yen fyi ..

---

<div class="post-metadata">

**Author:** ![Galex\_Yen](https://yyz1.discourse-cdn.com/flex003/user_avatar/community.thunk.ai/galex_yen/32/138_2.png) [@Galex\_Yen](https://community.thunk.ai/u/Galex_Yen)\
**Post date:** [July 18, 2025, 5:51pm UTC](https://community.thunk.ai/t/copy-link-to-document-from-one-drive-sharepoint-vs-using-entire-address-to-document/153/3 "2025-07-18T17:51:46Z")

</div>

> [@Matt\_THUNK](#):
>
> aybe it’s just me, but I wanted to point this out if other users are experiencin

@Matt_THUNK Thanks for bringing that to our attention. There are challenges with working with O365 URLs and converting them into Microsoft Graph URLs. We’ve had to find ways to work with different URL formats from across the O365 ecosystem. And, you’re right, this isn’t an issue with Google Workspace, because the document ids are always in the URL. I’ve filed a bug on our side and will start looking into a fix. Thanks.

---

<div class="post-metadata">

**Author:** ![Galex\_Yen](https://yyz1.discourse-cdn.com/flex003/user_avatar/community.thunk.ai/galex_yen/32/138_2.png) [@Galex\_Yen](https://community.thunk.ai/u/Galex_Yen)\
**Post date:** [July 22, 2025, 6:04am UTC](https://community.thunk.ai/t/copy-link-to-document-from-one-drive-sharepoint-vs-using-entire-address-to-document/153/4 "2025-07-22T06:04:06Z")

</div>

@Matt_THUNK - I’ve tried to reproduce this issue without success.

I’ve tried to extract URL from OneDrive 365 and Sharepoint in various ways and all of the files are accessible via Thunk.

The formats of URLs that I’m getting back fall into these four templates. The first three of which are from Copy Link in OneDrive and sharepoint UI. The last is from sharepoint browser address after opening the file.

```auto
https://tenant-my.sharepoint.com/personal/user_tenant_onmicrosoft_com/Documents/Ramen%20Receipt.png

https://tenant-my.sharepoint.com/:i:/g/personal/user_tenant_onmicrosoft_com/EduxL2JhEkJNvUzcvytvFvMBpNqYxkRa9AyAsDp8IoABCD?e=FooBar

https://tenant.sharepoint.com/:i:/s/SharepointSite/ABCDE-jrPxREnULcdAefhSkB0bF7mp4bAtRdEidB2Fm3gw?e=UZjECf

https://tenant.sharepoint.com/sites/SharepointSite/Shared%20Documents/Forms/AllItems.aspx?id=%2Fsites%2FSharepointSite%2FShared%20Documents%2FRamen%20Receipt%2Epng&parent=%2Fsites%2FQ1TeamEvent%2FShared%20Documents

```

Can you verify if the URLs you have been having trouble with match any of these templates?

Thanks
