Search This Blog

Wednesday, November 7, 2018

Download a DOCX File instead of Opening it in SharePoint 2013/2016

Hi,

Today I came across an issue where a business wanted me to provide a link on the Home Page to a DOCX file (available in 'Documents' document library) and when a user clicks it; it downloads (or Save) the file on the local computer rather than open it from the 'Documents' document library.

Here is the solution


href="/_layouts/download.aspx?SourceUrl=http://spsite/Shared Documents/documentname.docx"

Cheers
Sohail