Skip to content

Commit

Permalink
chore: replacing legacy links (#1308)
Browse files Browse the repository at this point in the history
now that the legacy account and profile applications are gone, the
redirect from these legacy links no longer works, so I am replacing them
with direct links to the MFEs.

FIXES: APER-3884
  • Loading branch information
deborahgu authored Feb 10, 2025
1 parent c9cee0c commit 2e8d10a
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/components/app/routes/LicenseActivationRoute.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const LicenseActivationRoute = () => {
</li>
<li>
<Hyperlink
destination={`${getConfig().LMS_BASE_URL}/account/settings`}
destination={`${getConfig().ACCOUNT_SETTINGS_URL}`}
variant="muted"
isInline
>
Expand Down
2 changes: 1 addition & 1 deletion src/components/dashboard/SubscriptionExpirationModal.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const SubscriptionExpirationModal = () => {
};

const renderCertificateText = () => (
<a href={`${config.LMS_BASE_URL}/u/${username}`} className="font-weight-bold">
<a href={`${config.ACCOUNT_PROFILE_URL}/u/${username}`} className="font-weight-bold">
download your completed certificates
</a>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ const CompletedCourseCard = (props) => {
<div className="mb-0 small">
View your certificate on{' '}
<Hyperlink
destination={`${config.LMS_BASE_URL}/u/${username}`}
destination={`${config.ACCOUNT_PROFILE_URL}/u/${username}`}
target="_blank"
className={classNames('text-underline', {
'text-light-200': isExecutiveEducation2UCourse,
Expand Down
6 changes: 4 additions & 2 deletions src/components/site-header/AvatarDropdown.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ import { useEnterpriseLearner } from '../app/data';

const AvatarDropdown = ({ showLabel }) => {
const {
ACCOUNT_PROFILE_URL,
ACCOUNT_SETTINGS_URL,
BASE_URL,
LMS_BASE_URL,
LOGOUT_URL,
Expand Down Expand Up @@ -87,14 +89,14 @@ const AvatarDropdown = ({ showLabel }) => {
);
})}
<Dropdown.Divider className="border-light" />
<Dropdown.Item href={`${LMS_BASE_URL}/u/${username}`}>
<Dropdown.Item href={`${ACCOUNT_PROFILE_URL}/u/${username}`}>
{intl.formatMessage({
id: 'site.header.avatar.dropdown.my.profile.title',
defaultMessage: 'My profile',
description: 'My profile link title in avatar dropdown.',
})}
</Dropdown.Item>
<Dropdown.Item href={`${LMS_BASE_URL}/account/settings`}>
<Dropdown.Item href={ACCOUNT_SETTINGS_URL}>
{intl.formatMessage({
id: 'site.header.avatar.dropdown.account.settings.title',
defaultMessage: 'Account settings',
Expand Down

0 comments on commit 2e8d10a

Please sign in to comment.