From 5e8d2748e069e0fdb00dbd3e438cd8171a086b4a Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Wed, 25 Oct 2023 13:23:12 +0100 Subject: [PATCH] Use configurable github issue links more consistently (#11796) * Use configurable github issue links more consistently Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Add `rel="noreferrer noopener"` Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --------- Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- src/components/views/dialogs/BugReportDialog.tsx | 3 ++- src/components/views/elements/ErrorBoundary.tsx | 2 +- src/components/views/rooms/RoomPreviewBar.tsx | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/components/views/dialogs/BugReportDialog.tsx b/src/components/views/dialogs/BugReportDialog.tsx index bf0464ae95..5d826f283e 100644 --- a/src/components/views/dialogs/BugReportDialog.tsx +++ b/src/components/views/dialogs/BugReportDialog.tsx @@ -233,7 +233,8 @@ export default class BugReportDialog extends React.Component { a: (sub) => ( {sub} diff --git a/src/components/views/elements/ErrorBoundary.tsx b/src/components/views/elements/ErrorBoundary.tsx index e6341a86f8..b5bc13f610 100644 --- a/src/components/views/elements/ErrorBoundary.tsx +++ b/src/components/views/elements/ErrorBoundary.tsx @@ -77,7 +77,7 @@ export default class ErrorBoundary extends React.PureComponent { public render(): ReactNode { if (this.state.error) { - const newIssueUrl = "https://github.com/vector-im/element-web/issues/new/choose"; + const newIssueUrl = SdkConfig.get().feedback.new_issue_url; let bugReportSection; if (SdkConfig.get().bug_report_endpoint_url) { diff --git a/src/components/views/rooms/RoomPreviewBar.tsx b/src/components/views/rooms/RoomPreviewBar.tsx index d47c3f2a17..776dcfe5ff 100644 --- a/src/components/views/rooms/RoomPreviewBar.tsx +++ b/src/components/views/rooms/RoomPreviewBar.tsx @@ -599,7 +599,7 @@ export default class RoomPreviewBar extends React.Component { { issueLink: (label) => (