Opened 2 years ago

Closed 2 years ago

Last modified 2 years ago

#16878 closed defect (bug) (invalid)

PDF links open in same window despite target="_blank"

Reported by: Frederik77 Owned by:
Priority: normal Milestone:
Component: Media Version: 3.1
Severity: minor Keywords:
Cc:

Description

When I link to a PDF and specify target="_blank", the PDF will still open in the same browser window. This is not browser-specific, since it happens in Chrome, IE, Safari and FireFox - and PDFs on non-wordpress sites open correctly (i.e. in a new tab when target="_blank" is set).

I found a temporary work-around, using javascript's window.open(), but as long as target="_blank" doesn't work correctly, I think we have a bug.

Here's a link to a page where the bug can be tested/reproduced: http://www.ptam.dk/opgaver/kapitel-1/opgave-5-byg-selv/

The page is password protected: WH31136

Please look at the two identical thumbnail images in the main column and test functionality against page source - both are links to PDF files, but one opens in the same window regardless of target="_blank", while the other uses a javascript workaround to open correctly, in a new window.

Change History (2)

  • Resolution set to invalid
  • Status changed from new to closed

The JavaScript in your theme is overriding the link target.

  • Milestone Awaiting Review deleted
Note: See TracTickets for help on using tickets.