Can't seem to find the right forum to place this in as it does not include SharePoint Online, but the Microsoft Community forums sent me here as they thought users here will have a better idea of what is going on.
I have many data view web parts on a SharePoint site. These generate lists of documents from multiple document libraries based on common meta data. The links on the lists worked fine up until December. This issue now is that the sites are using
the modern PDF viewer.
The links that are generated use "action=default" to open the file. The Microsoft file types (word, etc.) are handled fine and open correctly. The PDF links now only take you to the folder where the file sits.
I have tried Microsoft support to see if I could force the classic method of opening a PDF but they have told me it is not possible.
So I have to rework my code in SharePoint Designer to match the URLs created by SharePoint to open PDFs.
1. What is the new format for the link? (i.e. what info do I need to build the link and what is the formula)
2. How can I get the code to check whether the file type is PDF or not and build the URL respectively?
Thanks in Advance!