Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 5e8d274

Browse files
authored
Use configurable github issue links more consistently (#11796)
* Use configurable github issue links more consistently Signed-off-by: Michael Telatynski <[email protected]> * Add `rel="noreferrer noopener"` Signed-off-by: Michael Telatynski <[email protected]> --------- Signed-off-by: Michael Telatynski <[email protected]>
1 parent 4ff35f0 commit 5e8d274

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

src/components/views/dialogs/BugReportDialog.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,8 @@ export default class BugReportDialog extends React.Component<IProps, IState> {
233233
a: (sub) => (
234234
<a
235235
target="_blank"
236-
href="https://github.com/vector-im/element-web/issues/new/choose"
236+
href={SdkConfig.get().feedback.new_issue_url}
237+
rel="noreferrer noopener"
237238
>
238239
{sub}
239240
</a>

src/components/views/elements/ErrorBoundary.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export default class ErrorBoundary extends React.PureComponent<Props, IState> {
7777

7878
public render(): ReactNode {
7979
if (this.state.error) {
80-
const newIssueUrl = "https://github.com/vector-im/element-web/issues/new/choose";
80+
const newIssueUrl = SdkConfig.get().feedback.new_issue_url;
8181

8282
let bugReportSection;
8383
if (SdkConfig.get().bug_report_endpoint_url) {

src/components/views/rooms/RoomPreviewBar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -599,7 +599,7 @@ export default class RoomPreviewBar extends React.Component<IProps, IState> {
599599
{
600600
issueLink: (label) => (
601601
<a
602-
href="https://github.com/vector-im/element-web/issues/new/choose"
602+
href={SdkConfig.get().feedback.new_issue_url}
603603
target="_blank"
604604
rel="noreferrer noopener"
605605
>

0 commit comments

Comments
 (0)