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

Commit

Permalink
Use configurable github issue links more consistently (#11796)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
t3chguy authored Oct 25, 2023
1 parent 4ff35f0 commit 5e8d274
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/components/views/dialogs/BugReportDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,8 @@ export default class BugReportDialog extends React.Component<IProps, IState> {
a: (sub) => (
<a
target="_blank"
href="https://github.com/vector-im/element-web/issues/new/choose"
href={SdkConfig.get().feedback.new_issue_url}
rel="noreferrer noopener"
>
{sub}
</a>
Expand Down
2 changes: 1 addition & 1 deletion src/components/views/elements/ErrorBoundary.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export default class ErrorBoundary extends React.PureComponent<Props, IState> {

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) {
Expand Down
2 changes: 1 addition & 1 deletion src/components/views/rooms/RoomPreviewBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,7 @@ export default class RoomPreviewBar extends React.Component<IProps, IState> {
{
issueLink: (label) => (
<a
href="https://github.com/vector-im/element-web/issues/new/choose"
href={SdkConfig.get().feedback.new_issue_url}
target="_blank"
rel="noreferrer noopener"
>
Expand Down

0 comments on commit 5e8d274

Please sign in to comment.