Add external links override support (#2730)
* feat: add external links override support * fix: add note, fix 404 url and fix unrelated typo * test: fix
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import React, { useEffect, useState } from 'react';
|
||||
import { getConfig } from '@edx/frontend-platform';
|
||||
import { getConfig, getExternalLinkUrl } from '@edx/frontend-platform';
|
||||
import { FormattedMessage, useIntl } from '@edx/frontend-platform/i18n';
|
||||
import { Form, Hyperlink } from '@openedx/paragon';
|
||||
import PropTypes from 'prop-types';
|
||||
@@ -93,7 +93,7 @@ const BbbSettings = ({
|
||||
<span data-testid="free-plan-message">
|
||||
{intl.formatMessage(messages.freePlanMessage)}
|
||||
<Hyperlink
|
||||
destination="https://bigbluebutton.org/privacy-policy/"
|
||||
destination={getExternalLinkUrl('https://bigbluebutton.org/privacy-policy/')}
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
showLaunchIcon
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import { useIntl } from '@edx/frontend-platform/i18n';
|
||||
import { getExternalLinkUrl } from '@edx/frontend-platform';
|
||||
import {
|
||||
ActionRow,
|
||||
Alert,
|
||||
@@ -276,7 +277,7 @@ const SettingsModal = ({
|
||||
<div className="py-1">
|
||||
<Hyperlink
|
||||
className="text-primary-500"
|
||||
destination="https://openai.com/api-data-privacy"
|
||||
destination={getExternalLinkUrl('https://openai.com/api-data-privacy')}
|
||||
target="_blank"
|
||||
rel="noreferrer noopener"
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user