Removing targets (#179)
authorDessalines <dessalines@users.noreply.github.com>
Fri, 12 Feb 2021 17:55:07 +0000 (12:55 -0500)
committerGitHub <noreply@github.com>
Fri, 12 Feb 2021 17:55:07 +0000 (12:55 -0500)
13 files changed:
src/shared/components/community-link.tsx
src/shared/components/community.tsx
src/shared/components/iframely-card.tsx
src/shared/components/inbox.tsx
src/shared/components/instances.tsx
src/shared/components/main.tsx
src/shared/components/markdown-textarea.tsx
src/shared/components/post-form.tsx
src/shared/components/post-listing.tsx
src/shared/components/private-message-form.tsx
src/shared/components/sort-select.tsx
src/shared/components/user-listing.tsx
src/shared/components/user.tsx

index 48dd13411d808af8dd140401fb513322967ae6d6..a0f2ba81f60c4c6d7d75efd1eaa019da28069b37 100644 (file)
@@ -41,7 +41,6 @@ export class CommunityLink extends Component<CommunityLinkProps, any> {
         title={apubName}
         className={`${this.props.muted ? 'text-muted' : ''}`}
         to={link}
-        target={this.props.realLink ? '_blank' : ''}
       >
         {!this.props.hideAvatar && community.icon && showAvatars() && (
           <PictrsImage src={community.icon} icon />
index 156a9e99da572bd8f119f2cdaf9cc48b0da959e4..01fc50c3e66e37ba3b8a065cae191895a4263145 100644 (file)
@@ -341,7 +341,6 @@ export class Community extends Component<any, State> {
             this.state.communityRes.community_view.community.actor_id,
             this.state.sort
           )}
-          target="_blank"
           title="RSS"
           rel="noopener"
         >
index 3624c958a1db4cd9ee0aa1a36a8a29b90885a62f..efd9a90135c251c233838a2066345794d6634ef8 100644 (file)
@@ -36,19 +36,13 @@ export class IFramelyCard extends Component<
                 <div class="card-body">
                   {post.name !== post.embed_title && [
                     <h5 class="card-title d-inline">
-                      <a
-                        class="text-body"
-                        target="_blank"
-                        href={post.url}
-                        rel="noopener"
-                      >
+                      <a class="text-body" href={post.url} rel="noopener">
                         {post.embed_title}
                       </a>
                     </h5>,
                     <span class="d-inline-block ml-2 mb-2 small text-muted">
                       <a
                         class="text-muted font-italic"
-                        target="_blank"
                         href={post.url}
                         rel="noopener"
                       >
index f77f1e2b9a8f5f99a3229f8edb41dec60807f9dd..4cc79ac2c8ff268e4886d1c259b48b2dc710f1f8 100644 (file)
@@ -152,7 +152,6 @@ export class Inbox extends Component<any, InboxState> {
                 <small>
                   <a
                     href={`/feeds/inbox/${UserService.Instance.auth}.xml`}
-                    target="_blank"
                     title="RSS"
                     rel="noopener"
                   >
index 31a4cff92e06d02fe8006525bdb47af258cd717f..d0831c613cd8088bcf841cd17e60110b9e22dd11 100644 (file)
@@ -60,7 +60,7 @@ export class Instances extends Component<any, InstancesState> {
       <ul>
         {items.map(i => (
           <li>
-            <a href={`https://${i}`} target="_blank" rel="noopener">
+            <a href={`https://${i}`} rel="noopener">
               {i}
             </a>
           </li>
index a80d787d4dc6e4f557896623c83e8e988e1f8463..2b953e80b13150c2d0bbd1bebf0f8868e5aefda7 100644 (file)
@@ -594,7 +594,6 @@ export class Main extends Component<any, MainState> {
         {this.state.listingType == ListingType.All && (
           <a
             href={`/feeds/all.xml?sort=${this.state.sort}`}
-            target="_blank"
             rel="noopener"
             title="RSS"
           >
@@ -604,7 +603,6 @@ export class Main extends Component<any, MainState> {
         {this.state.listingType == ListingType.Local && (
           <a
             href={`/feeds/local.xml?sort=${this.state.sort}`}
-            target="_blank"
             rel="noopener"
             title="RSS"
           >
@@ -615,7 +613,6 @@ export class Main extends Component<any, MainState> {
           this.state.listingType == ListingType.Subscribed && (
             <a
               href={`/feeds/front/${UserService.Instance.auth}.xml?sort=${this.state.sort}`}
-              target="_blank"
               title="RSS"
               rel="noopener"
             >
index 67d5c4157539895132adad413e7c9661578ed60a..58e5eff73e7f089ff2aeec9182ae799da6ff6a3c 100644 (file)
@@ -291,7 +291,6 @@ export class MarkdownTextArea extends Component<
             </button>
             <a
               href={markdownHelpUrl}
-              target="_blank"
               class="btn btn-sm text-muted font-weight-bold"
               title={i18n.t('formatting_help')}
               rel="noopener"
index 552776d97972ac1367819a9f7b70d66f8af87f6f..9cf614759c9d10ba3a81284d4e9836b0ce79b1c2 100644 (file)
@@ -212,7 +212,6 @@ export class PostForm extends Component<PostFormProps, PostFormState> {
                   href={`${archiveUrl}/?run=1&url=${encodeURIComponent(
                     this.state.postForm.url
                   )}`}
-                  target="_blank"
                   class="mr-2 d-inline-block float-right text-muted small font-weight-bold"
                   rel="noopener"
                 >
index 715bb30923098b35433cfcf9ba0ddf5db797e0a8..893d78fd711fc8410911a26a7e347856f6408ae7 100644 (file)
@@ -214,7 +214,6 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
         <a
           class="float-right text-body d-inline-block position-relative mb-2"
           href={post.url}
-          target="_blank"
           rel="noopener"
           title={post.url}
         >
@@ -242,7 +241,6 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
           <a
             className="text-body"
             href={post.url}
-            target="_blank"
             title={post.url}
             rel="noopener"
           >
@@ -298,7 +296,6 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
               <a
                 className="text-muted font-italic"
                 href={post_view.post.url}
-                target="_blank"
                 title={post_view.post.url}
                 rel="noopener"
               >
@@ -380,7 +377,6 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
             <a
               className={!post.stickied ? 'text-body' : 'text-primary'}
               href={post.url}
-              target="_blank"
               title={post.url}
               rel="noopener"
             >
index 7a1507ddeb1849aa894ad48e344d16da996acaea..6d5228233af0b49ff72b198a8fb5d1bf8a2b1c76 100644 (file)
@@ -141,7 +141,6 @@ export class PrivateMessageForm extends Component<
                     #
                     <a
                       class="alert-link"
-                      target="_blank"
                       rel="noopener"
                       href="https://element.io/get-started"
                     >
index ca6984f65206d5d93df456b418ea148b21d1d741..5620057d495df7d9ef043561183d7c18295b342a 100644 (file)
@@ -68,7 +68,6 @@ export class SortSelect extends Component<SortSelectProps, SortSelectState> {
         <a
           className="text-muted"
           href={sortingHelpUrl}
-          target="_blank"
           rel="noopener"
           title={i18n.t('sorting_help')}
         >
index a20785a77568411a6977d3fa78a803e4b25a5f1e..9efb7c18d7a2cbf17246fdf27c1b5714dcb156fe 100644 (file)
@@ -48,7 +48,6 @@ export class UserListing extends Component<UserListingProps, any> {
           title={apubName}
           className={this.props.muted ? 'text-muted' : 'text-info'}
           to={link}
-          target={this.props.realLink ? '_blank' : ''}
         >
           {!this.props.hideAvatar && user.avatar && showAvatars() && (
             <PictrsImage src={user.avatar} icon />
index 09858bc1a9cb7f8f5333b4d0b340b54e00efd99d..241e9f69bd60f4a584f2588b9877a3f93850aab7 100644 (file)
@@ -388,7 +388,6 @@ export class User extends Component<any, UserState> {
         />
         <a
           href={`/feeds/u/${this.state.userName}.xml?sort=${this.state.sort}`}
-          target="_blank"
           rel="noopener"
           title="RSS"
         >
@@ -442,7 +441,6 @@ export class User extends Component<any, UserState> {
                     className={`d-flex align-self-start btn btn-secondary mr-2 ${
                       !uv.user.matrix_user_id && 'invisible'
                     }`}
-                    target="_blank"
                     rel="noopener"
                     href={`https://matrix.to/#/${uv.user.matrix_user_id}`}
                   >
@@ -641,7 +639,7 @@ export class User extends Component<any, UserState> {
               </div>
               <div class="form-group row">
                 <label class="col-lg-5 col-form-label" htmlFor="matrix-user-id">
-                  <a href={elementUrl} target="_blank" rel="noopener">
+                  <a href={elementUrl} rel="noopener">
                     {i18n.t('matrix_user_id')}
                   </a>
                 </label>