From: Dessalines Date: Mon, 16 Nov 2020 22:39:52 +0000 (-0600) Subject: Fixing off-site links for community and user. Fixes #78 X-Git-Url: http://these/git/%22https:/www.exeterceilidhs.net/static/%24%7Bargs.pageFn.jump%20n%7D?a=commitdiff_plain;h=e23916208ebebbe7ea91bcf76edc1c6b02a47322;p=lemmy-ui.git Fixing off-site links for community and user. Fixes #78 --- 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() && (