[wp-trac] [WordPress Trac] #39097: Links in embeds can't be opened in a new tab
WordPress Trac
noreply at wordpress.org
Tue Dec 6 02:50:08 UTC 2016
#39097: Links in embeds can't be opened in a new tab
--------------------------+-----------------------------
Reporter: smerriman | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Embeds | Version:
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
While reading https://make.wordpress.org/core/2016/12/05/wordpress-4-7
-field-guide/, which contains many embeds, I wanted to open up all items
of interest in new tabs so I could read through them.
In Firefox, mousewheel-clicking, ctrl-clicking, or right clicking a link
in an embed immediately opens the link in the same tab (in the last case,
without the normal right click menu appearing at all).
In Chrome, mousewheel-clicking does nothing; ctrl-clicking opens it in the
same tab, while right clicking does work.
This appears to all be caused by the sandbox attribute on the iframe.
Not allowing the link to open in a new tab seems very wrong, especially
when multiple embeds are in a post.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39097>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list