Skip to content

Commit

Permalink
Related Posts Block: Fix Thumbnails Opening in Same Tab (#34410)
Browse files Browse the repository at this point in the history
* Related Posts Block: Open Thumbnails in New Tab

* Add changelog
  • Loading branch information
Aurorum authored Dec 1, 2023
1 parent 58a8518 commit 2d124cc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: bugfix

Related Posts block: fix thumbnails opening in the same tab.
Original file line number Diff line number Diff line change
Expand Up @@ -100,13 +100,16 @@ function RelatedPostsEditItem( props ) {
{ props.post.title }
</a>
{ props.displayThumbnails && props.post.img && props.post.img.src && (
<a className="jp-related-posts-i2__post-img-link" href={ props.post.url }>
<a
className="jp-related-posts-i2__post-img-link"
href={ props.post.url }
target="_blank"
rel="nofollow noopener noreferrer"
>
<img
className="jp-related-posts-i2__post-img"
src={ props.post.img.src }
alt={ props.post.title }
rel="nofollow noopener noreferrer"
target="_blank"
/>
</a>
) }
Expand Down

0 comments on commit 2d124cc

Please sign in to comment.