Bug #17834
closedOpen PDF in new tab
0%
Description
Hi Ray, All,
I am helping with the CILC folks on this site: https://cilc.commons.gc.cuny.edu/heritage-arabic-ebook/teaching-materials/
They want to be able to to click the PDF link (below the embed) and have it open in a new tab (and not download right away). I can't seem to figure out the right settings to get this to work as they want.
Any suggestions?
Updated by Laurie Hurson over 1 year ago
I dont't think this is due to WP Accessibility plugin because theat feature has been unclicked in the settings.
I have tried setting it to open in an attachment page. Open in a new tab in the block settings...no settings seem to allow their desired result.
Updated by Laurie Hurson over 1 year ago
I Guess this is browser dependent. I just checked it in Chrome and there are different results.
The ideal situation is the first link opens the PDF in a new tab (works in chrome) and the second link results in automatic download of pdf to local computer (works in firefox).
Is there any way to standardize this setup (link 1- new tab; link 2 - download) across browsers?
Updated by Raymond Hoh over 1 year ago
Hi Laurie,
I just checked the PDF links in Chrome and Firefox.
For me, the first link does what you want in both browsers; they will both open in a new tab. For the second link, Chrome will download the PDF. However, Firefox will both download and open the locally-downloaded PDF in a new tab. I think this is because Firefox defaults to opening PDFs by default now. See https://support.mozilla.org/en-US/kb/view-pdf-files-firefox-or-choose-another-viewer#w_firefoxs-built-in-pdf-viewer.
Let me know if anyone else experiences the same thing.
Updated by scott voth over 1 year ago
Hi Ray - Thanks for sharing. For me, I had to go to Firefox preferences and change the settings. But it works great.
Updated by Boone Gorges 3 months ago
- Status changed from New to Resolved
- Target version set to Not tracked