Unable to access the shared link from sharepoint online site when the file is moved to another folder within the library

Ajaz Khan 266 Reputation points
2023-04-20T19:06:57.7566667+00:00

Hello There, I have an issue where users are unable to access the shared link from SharePoint online site when the file is moved to another folder within the library. The office files like word and excel work however they get error "this site can't be reached. This is happening for all non office files like jpeg, png pdf etc. The steps we follow is - 1- Open the SPO lobrary > Select the file > Click Copy link > Choose people with existing access and then copy the link. now we move the same file to another folder in the same library but when try to open the earlier copied link it does not work. it works for word excel etc. but not for other file types. The testing was done using site admin and site owner access. I could not find anywhere any MS doc that indicates as its a limitation. Kindly assist.

Microsoft 365 and Office Install, redeem, activate For business Windows
Microsoft 365 and Office SharePoint Development
Microsoft 365 and Office SharePoint For business Windows
{count} votes

Accepted answer
  1. Yanli Jiang - MSFT 31,596 Reputation points Microsoft External Staff
    2023-04-21T07:19:35.6266667+00:00

    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.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.