Skip to content

Commit

Permalink
'View' button opens a new tab (#59554)
Browse files Browse the repository at this point in the history
Co-authored-by: jameskoster <[email protected]>
Co-authored-by: t-hamano <[email protected]>
Co-authored-by: jasmussen <[email protected]>
Co-authored-by: youknowriad <[email protected]>
  • Loading branch information
5 people authored Mar 5, 2024
1 parent e36e723 commit 1a5bdfe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/edit-site/src/components/actions/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ export const viewPostAction = {
},
callback( posts ) {
const post = posts[ 0 ];
document.location.href = post.link;
window.open( post.link, '_blank' );
},
};

Expand Down

0 comments on commit 1a5bdfe

Please sign in to comment.