Skip to content

Commit 649ea99

Browse files
committed
feat: use DASHBOARD_URL config for the logo href
1 parent c1b50ef commit 649ea99

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Header.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ const Header = ({ intl }) => {
103103
const props = {
104104
logo: config.LOGO_URL,
105105
logoAltText: config.SITE_NAME,
106-
logoDestination: `${config.LMS_BASE_URL}/dashboard`,
106+
logoDestination: config.DASHBOARD_URL ? config.DASHBOARD_URL : `${config.LMS_BASE_URL}/dashboard`,
107107
loggedIn: authenticatedUser !== null,
108108
username: name,
109109
avatar: authenticatedUser !== null ? authenticatedUser.avatar : null,

src/learning-header/LearningHeader.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const LearningHeader = ({
3333
const headerLogo = (
3434
<LinkedLogo
3535
className="logo"
36-
href={`${getConfig().LMS_BASE_URL}/dashboard`}
36+
href={getConfig().DASHBOARD_URL ? getConfig().DASHBOARD_URL : `${getConfig().LMS_BASE_URL}/dashboard`}
3737
src={getConfig().LOGO_URL}
3838
alt={getConfig().SITE_NAME}
3939
/>

0 commit comments

Comments
 (0)