Hi @Ajaz Khan ,
From my research and testing, it turns out that different file types require different ways of identifying resources, as judged by the url that ends up opening the file.
For Word file, the url is like this:
https://domain.sharepoint.com/:w:/r/sites/Amy12345/_layouts/15/Doc.aspx?sourcedoc=%7B606CB430-018E-435E-BBE5-BFBED9F439AE%7D&file=Document222.docx&action=default&mobileredirect=true
For png file, the url is like this:
https://domain.sharepoint.com/sites/Amy12345/Shared%20Documents/Forms/AllItems.aspx?id=%2Fsites%2FAmy12345%2FShared%20Documents%2FDivision%202%2F03244%2EPNG&parent=%2Fsites%2FAmy12345%2FShared%20Documents%2FDivision%202
It can be seen that the url of the png file identifies resources through the file path. And this is by design, so it is recommended that you re-share the link after moving this type of file.
-
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.