Fixing link targets reloading page. Fixes #2275 (#2276)

This commit is contained in:
Dessalines 2023-12-07 11:59:42 -05:00 committed by GitHub
parent ab9c7a0788
commit 2fff988dc6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -340,7 +340,6 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
className="text-body" className="text-body"
to={`/post/${post.id}`} to={`/post/${post.id}`}
title={I18NextService.i18n.t("comments")} title={I18NextService.i18n.t("comments")}
target={this.linkTarget}
> >
<div className="thumbnail rounded bg-light d-flex justify-content-center"> <div className="thumbnail rounded bg-light d-flex justify-content-center">
<Icon icon="message-square" classes="d-flex align-items-center" /> <Icon icon="message-square" classes="d-flex align-items-center" />
@ -636,7 +635,6 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
title={title} title={title}
to={`/post/${pv.post.id}?scrollToComments=true`} to={`/post/${pv.post.id}?scrollToComments=true`}
data-tippy-content={title} data-tippy-content={title}
target={this.linkTarget}
> >
<Icon icon="message-square" classes="me-1" inline /> <Icon icon="message-square" classes="me-1" inline />
{pv.counts.comments} {pv.counts.comments}