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>
This commit is contained in:
Michael Telatynski 2023-10-25 13:23:12 +01:00 committed by GitHub
parent 4ff35f0471
commit 5e8d2748e0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 3 deletions

View file

@ -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>

View file

@ -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) {

View file

@ -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"
>