Forum Discussion
John Twohig
Apr 28, 2020Iron Contributor
Open pdf in Browser not SharePoint pdf Viewer
When I click on a pdf file either in search results or the document library web part the file opens in the web browser. When I put a link to the same file in an image web part the file opens in the S...
I0K
Feb 17, 2025Copper Contributor
The workaround we found for PDFs in Quicklinks WebPart to open in the browser's PDF viewer instead of SharePoint's file viewer was to add # at the end of the direct link to the PDF.
For example, the PDF link is: https://<tenant>.sharepoint.com/sites/testsite/shared%20documents/test.pdf
When adding or changing links, choose the "From a link" option and use the URL:
https://<tenant>.sharepoint.com/sites/testsite/shared%20documents/test.pdf#
The link will be rendered as:
https://<tenant>.sharepoint.com/sites/testsite/shared%20documents/test.pdf#?web=1
Microsoft may change this behaviour in the future, but so far, this is the workaround that we've been advising our content editors to use.