[wp-trac] [WordPress Trac] #16878: PDF links open in same window despite target="_blank"

WordPress Trac wp-trac at lists.automattic.com
Thu Mar 17 18:23:27 UTC 2011


#16878: PDF links open in same window despite target="_blank"
--------------------------+-----------------------------
 Reporter:  Frederik77    |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Media         |    Version:  3.1
 Severity:  minor         |   Keywords:
--------------------------+-----------------------------
 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.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/16878>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list