I want to force Office files stored in SharePoint to open in the desktop app - NEVER in Office Online apps. I have configured the site and the Document Library but opening in the native app only seems to work when navigating to the file in the DL and clicking it directly. Web Parts seem to always open the web app, as do links copied via the "Share" or "Copy Link" options in the DL.
but basically, it is a bit of code in front of your link that forces certain word functions. For example adding "ms-word:ofeu" to the front of a link will force the file that is linked (assuming it's a Word doc) to open in word, and specifically in editing mode. There are options for opening in other office apps or in other modes (such as viewing mode, etc). However, the catch I've found is twofold:
Msft has overcomplicated this - you can see the default behavior by inspecting links added to the text web part. The data-interception tag is set to "on" by default, forcing same tab behavior. If you check "open in a new tab", data-interception is "off" and the standard target="_blank" tag is added and isn't overridden. Clearly Sharepoint detects if a link is internal and adds data-interception="on" to force it to open in the same tab, UNLESS (and this is where it gets silly), you're on a system page (like a library). How they come up with this logic is beyond me.
It would be simple to add the open in new tab option to the quick links web part to defeat the default behavior, regardless of whether the link is internal or external, but Msft has ignored the numerous complaints about this - as usual - and the end result is they're just pushing the use of all the url shortening apps out there.
Meanwhile if you are unable to use the modern script editor web part or SPFx and/or custom scripting is not allowed in your company, you can right/second click on quick link and select Open link in new tab option like:
No need to use any custom script or custom code for this functionality now as Microsoft is currently rolling out a new feature for SharePoint Online quick links web part which will allow you to open links in new browser tab.
Do we know if this capability will be rolled out for quick links in a SharePoint site as well? I have a use case where I'd like for users to click on a quick link within a page and have a new tab opened for them to view the content instead of having the content loaded on the same window.
Hi @Echo Du_MSFT
i get the error when I attempt to set the link in a SharePoint page- not when I copy and paste the link in a browser.
These are my steps
I edit a quick link on a SharePoint page - I click change - I click 'From a link" - I paste in:
I'm trying to build an approval flow (with 'Start and wait for an approval'), which involves opening .xlsm file from SharePoint (with macro). Default link, generated by "create sharing link", opens the file in Excel online - and I want my users to be able to run macro. But for some of my users there is no "Open in Desktop app" button, so I want to force file to be opened in Desktop app - and after a couple of days trying I'm unable to find a solution.
Documents (Word/Excel/PowerPoint files/PDF file types) linked in SharePoint Online pages, navigation menu, lists, etc., open in the browser (or in client application!) directly either in Read-only mode or in Edit mode, based on user permissions. What if you want to force download a file instead of opening it in the browser with Microsoft Office Online applications? Here are some workarounds to generate a link that downloads the document directly (or a force download link).
I need to do the oposit : when the user open the link i shared, i want the image to be displayed in the sharepoint not downloaded. It works with pdf but i have images (.tiff files) and the link always download the file even if there is &web=1 in the link.
Does someone has a solution ?
I found this solution here, which I copy pasted from:
-US/f4f52b57-4e09-4ab3-b89f-0731e5ea684c/sharepoint-online-enable-direct-download-instead-of-opening-document-when-clicking-on-the-link?forum=appsforsharepoint