From e23916208ebebbe7ea91bcf76edc1c6b02a47322 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Mon, 16 Nov 2020 16:39:52 -0600 Subject: [PATCH] Fixing off-site links for community and user. Fixes #78 --- src/shared/components/community-link.tsx | 1 + src/shared/components/user-listing.tsx | 1 + 2 files changed, 2 insertions(+) diff --git a/src/shared/components/community-link.tsx b/src/shared/components/community-link.tsx index db69f44..0fc9217 100644 --- a/src/shared/components/community-link.tsx +++ b/src/shared/components/community-link.tsx @@ -46,6 +46,7 @@ export class CommunityLink extends Component { title={apubName} className={`${this.props.muted ? 'text-muted' : ''}`} to={link} + target={!local ? '_blank' : ''} > {!this.props.hideAvatar && community.icon && showAvatars() && ( diff --git a/src/shared/components/user-listing.tsx b/src/shared/components/user-listing.tsx index 1b97dbb..18deb56 100644 --- a/src/shared/components/user-listing.tsx +++ b/src/shared/components/user-listing.tsx @@ -53,6 +53,7 @@ export class UserListing extends Component { title={apubName} className={this.props.muted ? 'text-muted' : 'text-info'} to={link} + target={!local ? '_blank' : ''} > {!this.props.hideAvatar && user.avatar && showAvatars() && ( -- 2.44.1