Skip to content

Commit

Permalink
feat: use DASHBOARD_URL config for the logo href
Browse files Browse the repository at this point in the history
  • Loading branch information
asadali145 committed Apr 1, 2024
1 parent c1b50ef commit 649ea99
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Header.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ const Header = ({ intl }) => {
const props = {
logo: config.LOGO_URL,
logoAltText: config.SITE_NAME,
logoDestination: `${config.LMS_BASE_URL}/dashboard`,
logoDestination: config.DASHBOARD_URL ? config.DASHBOARD_URL : `${config.LMS_BASE_URL}/dashboard`,
loggedIn: authenticatedUser !== null,
username: name,
avatar: authenticatedUser !== null ? authenticatedUser.avatar : null,
Expand Down
2 changes: 1 addition & 1 deletion src/learning-header/LearningHeader.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const LearningHeader = ({
const headerLogo = (
<LinkedLogo
className="logo"
href={`${getConfig().LMS_BASE_URL}/dashboard`}
href={getConfig().DASHBOARD_URL ? getConfig().DASHBOARD_URL : `${getConfig().LMS_BASE_URL}/dashboard`}
src={getConfig().LOGO_URL}
alt={getConfig().SITE_NAME}
/>
Expand Down

0 comments on commit 649ea99

Please sign in to comment.