Converts a SharePoint URL into a plain text direct URL.

Multiple URL’s can be combined on separate lines. Line breaks are preserved.
If the URL is already a direct URL it is not modified.
If the URL is invalid then the returned URL is prefixed Bad url:

Example:

This:
https://mytenant.sharepoint.com/sites/v3-1/Model/Forms/Model.aspx?id=%2Fsites%2Fv3%2D1%2FModel%2Fmy%20%C3%A6%C3%B8%C3%A5%20Folder&newTargetListUrl=%2Fsites%2Fv3%2D1%2FModel&viewpath=%2Fsites%2Fv3%2D1%2FModel%2FForms%2FModel%2Easpx

Into this:
https://mytenant.sharepoint.com/sites/v3-1/Model/my æøå Folder

Last modified: 19 August 2025