]> Untitled Git - lemmy.git/commitdiff
Links from posts open in new tab.
authorDessalines <tyhou13@gmx.com>
Sat, 20 Apr 2019 19:04:17 +0000 (12:04 -0700)
committerDessalines <tyhou13@gmx.com>
Sat, 20 Apr 2019 19:04:17 +0000 (12:04 -0700)
- Fixes #88

ui/src/components/post-listing.tsx

index 7103a8cfe6817d828afc916d81187f5fadb48714..8803d6290217818abef75f4fcab8421f7bb6ce2f 100644 (file)
@@ -65,7 +65,7 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
         <div className="pt-1 ml-4">
           {post.url 
             ? <div className="mb-0">
-            <h5 className="d-inline"><a className="text-white" href={post.url} title={post.url}>{post.name}</a>
+            <h5 className="d-inline"><a className="text-white" href={post.url} target="_blank" title={post.url}>{post.name}</a>
             {post.removed &&
               <small className="ml-2 text-muted font-italic">removed</small>
             }