0

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.

0

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.