How I can get absolute url from shared url link

Jorge Arlex Correa Muñoz 1 Reputation point
2022-09-08T11:58:31.35+00:00

I need to get absolte url from shared url link, becouse I have a lot of hyperlink with shared url links, so , when I move data whitin sites, the shared url dont works

For example:
https://domain.sharepoint.com/:w:/s/sitex/ESA8FX7jpJdLj-Mz-Ijx2RYBMZHFtso1ykQCExIoecMhwQ?e=geVwOd

Now I wanto to get from this shared url the absolote url like this
https://domain.sharepoint.com/sites/sitex/Documents/folder/subfolder/NameDocument.docx

Exist some process, script o anythink way to do this.

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
9,728 questions
{count} votes

4 answers

Sort by: Most helpful
  1. Jorge Arlex Correa Muñoz 1 Reputation point
    2022-09-09T07:33:43.917+00:00

    For example I´ve a office excel document with hyperlink to other document call it DOC-A
    Now, When I move this document from site X to site Y the hyperlink broken
    https://domain.sharepoint.com/sites/sitex
    https://domain.sharepoint.com/sites/sitey

    I looking for a way to get absolute url becouse are hundred hyperlinks that we have.

    Thanks a lot for your help.

    239317-error.jpg

    0 comments No comments

  2. Xuyan Ding - MSFT 7,561 Reputation points
    2022-09-09T09:42:58.2+00:00

    Hi @Jorge Arlex Correa Muñoz ,

    Per my test,there are two ways to work fine without prompting an error.

    1. Change "Move to" to "Copy to" so the share link will always work.
    2. Share the office excel document on sitey after moving, even if the hyperlink in excel points to other files from sitex.
      239463-microsoftteams-image-6.png
      239388-microsoftteams-image-7.png

    For the absolute URL you mentioned that you want to get the document, even if it is possible to create an absolute URL, the link will not open. Because the person being shared does not have permission to this URL, the permission to view is limited to the shared excel file itself. It is extremely unsafe to imagine that if the absolute URL is shared casually, the user can enter and view the corresponding 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.

    0 comments No comments

  3. Jorge Arlex Correa Muñoz 1 Reputation point
    2022-09-09T11:56:07.5+00:00

    Hi @Xuyan Ding - MSFT .

    Thank a lot about your help.

    Our storage is almost full, so I need to move data, if copy da ta site I can´t free up space.

    And the second choice, I need to move data and include excel file with hyperlinks.

    Regards,


  4. Jorge Arlex Correa Muñoz 1 Reputation point
    2022-09-13T08:25:29.42+00:00

    Thanks a lot for you time and bring to me posibilities to solve the situation, so, I´ll follow looking for a posible solution to my problem