FIX: Restore cmd+click ability in topic-info (#27305)

This commit is contained in:
Jarek Radosz 2024-06-03 16:01:20 +02:00 committed by GitHub
parent 29b826c8f7
commit adeda6c6a5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 0 deletions

View File

@ -7,6 +7,7 @@ import { htmlSafe } from "@ember/template";
import { and, gt, not, or } from "truth-helpers";
import categoryLink from "discourse/helpers/category-link";
import concatClass from "discourse/helpers/concat-class";
import { wantsNewWindow } from "discourse/lib/intercept-click";
import renderTags from "discourse/lib/render-tags";
import DiscourseURL from "discourse/lib/url";
import icon from "discourse-common/helpers/d-icon";
@ -68,6 +69,10 @@ export default class Info extends Component {
@action
jumpToTopPost(e) {
if (wantsNewWindow(e)) {
return;
}
e.preventDefault();
if (this.args.topic) {
DiscourseURL.routeTo(this.args.topic.firstPostUrl, {