Oct 06 2022 06:34 AM
I can two crucial issues with links in SPO.
1. With the feature in SPO I can set, that Office documents always open within the Desktop app.
--> This feature doesn't work when I send a link to someone. It then still open within the browser. How can I change this?
2. It get's even worse, when I send a link to a none Office document, e.g. a *.dmg (CAD-File). Then the browser opens and asks me to download the file. This leads to a duplicate, what I really want to avoid.
I couldn't find anything on the roadmap for this issues, but would undersand it as basis functionality. Understand that MS wants to push into the cloud - that's still not the way many users work (e.g. because of the lack of many functionalities).
Thanks for you help in advance.
Oct 06 2022 09:08 AM
1. May not be exactly what you are looking for, but you can use Office URI Schemes to share the links to documents which will open office documents in desktop app. For example, below link will open the excel file in desktop app:
ms-excel:ofv|u|https://contoso/Q4/budget.xls
Where "https://contoso/Q4/budget.xls" is the URL of your excel file. You can find other URI schemes in above documentation.
2. Non office documents will not open in browser or respective desktop apps - this is a default behavior in SharePoint.
Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.
Oct 07 2022 02:53 AM
Thanks for your reply.
1. I found them aswell. But didn't get further how to add the uri-scheme-prefix by default. Would I need to adapt a registry entry? And is this only a possible solution for Office documents, but e.g. not PDF or other files (as far as I found out)?
2. When I have a none-office file stored within a SPO and share a link to this file, it generates me a link like https://contoso.sharepoint.com/:w:/r/sites/SP1/Shared%20-Documents/General/Folder1/sampleFile.dmg
And yes, tries to opens it within a browser. And then asks me to download that file. What leads to duplication.
What I want is, that the file direct opens the corresponding desktop app. So, the same behaviour as if I would have stored the file on a file server, e.g. R:\Folder1\sampleFile.dmg .
Oct 07 2022 03:03 AM
@romanbrun For office documents, you can use URI schemes while sharing the document links (whether you are sharing via email or adding links on any site).
For non-office files: try adding ?Web=1 at the end of URL and see if it works for you. File URL format:
https://contoso.sharepoint.com/sites/siteName/Shared%20Documents/Document.docx?Web=1
OR you have to share the file URLs in this format:
https://contoso.sharepoint.com/sites/siteName/Shared Documents/Forms/AllItems.aspx?id=/sites/siteName/Shared Documents/MyImage.png&parent=/sites/siteName/Shared Documents
Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.
Oct 07 2022 03:23 AM
With "you can use URI schemes while sharing the document links" I assume you mean, that i add this manually, correct? This wouldn't work for our end-users... I need a solution where it is added by default.
Adding ?Web=1 still adds within the browser
Changing the URL from:
to:
https://contoso.sharepoint.com/:x:/r/sites/sp1/Freigegebene Dokumente/Forms/AllItems.aspx?id=sites/sp1/Freigegebene Dokumente/General/sample.xlsx&parent=sites/sp1/Freigegebene Dokumente
Leads to the message saying "element not found"
Oct 07 2022 03:37 AM
@romanbrun Do not use the "Copy link" option, it will not give you clean URL of document.
Check steps given here to get the direct/clean URL of document: Hyperlinks to PDF files on SharePoint Online
Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.
Oct 07 2022 04:05 AM
Thanks. However, independent from where I generate the link, I always get "Type 2" links (as named within Hyperlinks to PDF files on SharePoint Online ).
I mostly use the type of shareing "People who have access".
When I couse "People in my tenant" I get "Type 1" links. But I don't want to share with anyone in my tenant...
Oct 07 2022 05:27 AM
@romanbrun Sorry, I must have provided wrong post URL in my above response.
Try solution given in this thread to get the direct link to document: Copy Link includes extra characters that won't work
It will be in this format:
https://<tenant>.sharepoint.com/sites/<siteName>/<libraryName>/folder/fileName.extension
Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.
Oct 07 2022 02:14 PM
SolutionOct 07 2022 02:51 PM
1. There is a feature under the site collection features in settings called "Open Documents in Client Applications by Default". This will open documents in the native app by default.
https://Yourtenant.sharepoint.com/_layouts/15/ManageFeatures.aspx?Scope=Site
2. This is due to how OS and Your browser handles links that aren't "native". This will happen on all websites. You can try to copy the path by pressing information then path as the image below and adding ?web=1 as stated by others in the thread :)
Oct 07 2022 02:55 PM
Oct 10 2022 03:52 AM
Thanks for you replies!
So ZeeDrive is different from just synchronising with OneDrive?
The issue I have is, that when synchronising and using the Windows Explorer, I always get the username within the path, e.g.:
C:\Users\uxxxxx\Tenant\SPO-Project1\...
Then, obviously, the link doesn't work.
Technically, this could be removed. But then I get a security issue (different users using a same device).
Oct 12 2022 12:41 AM
I currently run the trial of ZeeDrive. Seems to be the best (temporary) solution. Looking forward that @MS solves this issue...
Oct 12 2022 09:24 AM
@romanbrun Yup, if everyone is trained to master OneDrive and everything is internal you can use OneDrive, but people would have to share "Folders" to documents, so you can utilize the "Link to my onedrive" feature the shared folder location, which will sync down local and can be worked on and utilized that way. But that's really the only way around it other than Zee Drive and it's direct path to the SharePoint location.
So if you don't have a massive user base that might be an alternate solution in training users to Share the file in a folder and utilizing that link to their onedrive so it just syncs into their OneDrive.