Question

I have some documents stored in a document Set.

I noticed that opening the file by clicking on it in the document set produces a different behavior than taking this exact same link and putting it on a browser.

using IE, when clicking on the document, I get this dialog box: enter image description here

but when I copy the shortcut and use it directly in the browser, i get this dialog box:

enter image description here

same thing in Firefox:

when clicking on the document, I get this dialog box: enter image description here

but when I copy the shortcut and use it directly in the browser, i get this dialog box: enter image description here

What can I do in order to always open the document in a way similar to clicking on its name in the document set?

I am using SP 2010 enterprise edition. site collection is using publishing template.

Was it helpful?

Solution

It turned out that when clicking a link in a document library, there is an onclick event in the

> <a href onclick="return
> DispEx(this,event,'TRUE','FALSE','FALSE','SharePoint.OpenDocuments.3','0','SharePoint.OpenDocuments','','','','1','0','0','0x7fffffffffffffff','','')">

This is what causes the document to open in edit mode rather than just download it.

Licensed under: CC-BY-SA with attribution
Not affiliated with sharepoint.stackexchange
scroll top