Opened 2 years ago
Last modified 2 years ago
#55742 new defect (bug)
In Safari Browser, when we click on preview in new tab then it opens a page/post in same tab
Reported by: | kmadhak | Owned by: | |
---|---|---|---|
Milestone: | Awaiting Review | Priority: | normal |
Severity: | normal | Version: | 5.9.3 |
Component: | Administration | Keywords: | |
Focuses: | administration | Cc: |
Description
When we create a page/post and after updating its content we can preview a page/post in new tab then in chrome it always open in new tab but in safari the preview in new tab works only once and from the second time it always open in same tab, for more detail please find the attachment and let me know if there is anything.
Attachments (1)
Change History (3)
#1
@
2 years ago
Technically it is not always a new tab, but it opens a named preview frame for that post (for example, target="wp-preview-70"
). If you have unsaved changes in one tab, you would not want to make other changes in another tab and lose the earlier changes. However, Chrome and Edge seem to ignore that in the editor, opening the preview in a new tab anyway.
The same target
value has been used for the Classic Editor preview link—and in the admin toolbar—before using it in the block editor. To avoid confusion, the block editor link text might be revised to "open in a preview tab" or something similar. I also question whether the Edit Post link belongs in the toolbar when previewing a post.
Related: #20233
For better understanding I have attached a video