Skip to content

Commit f3fdc31

Browse files
fix: fixed module button href
1 parent bc68a8c commit f3fdc31

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

src/containers/LearnerDashboardHeader/CollapsedHeader/CollapseMenuBody.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export const CollapseMenuBody = ({ isOpen }) => {
2929

3030
return (
3131
<div className="d-flex flex-column shadow-sm nav-small-menu">
32-
<Button as="a" href="/" variant="inverse-primary">
32+
<Button as="a" href={`${getConfig().LMS_BASE_URL}/dashboard/`} variant="inverse-primary">
3333
{formatMessage(messages.course)}
3434
</Button>
3535
<Button as="a" href={urls.programsUrl()} variant="inverse-primary">

src/containers/LearnerDashboardHeader/CollapsedHeader/__snapshots__/CollapseMenuBody.test.jsx.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ exports[`CollapseMenuBody render 1`] = `
66
>
77
<Button
88
as="a"
9-
href="/"
9+
href="http://localhost:18000/dashboard/"
1010
variant="inverse-primary"
1111
>
1212
Courses
@@ -74,7 +74,7 @@ exports[`CollapseMenuBody render unauthenticated 1`] = `
7474
>
7575
<Button
7676
as="a"
77-
href="/"
77+
href="http://localhost:18000/dashboard/"
7878
variant="inverse-primary"
7979
>
8080
Courses

src/containers/LearnerDashboardHeader/ExpandedHeader/__snapshots__/index.test.jsx.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ exports[`ExpandedHeader render 1`] = `
1111
<Button
1212
as="a"
1313
className="p-4 course-link"
14-
href="/"
14+
href="http://localhost:18000/dashboard/"
1515
variant="inverse-primary"
1616
>
1717
Courses

src/containers/LearnerDashboardHeader/ExpandedHeader/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export const ExpandedHeader = () => {
3232

3333
<Button
3434
as="a"
35-
href="/"
35+
href={`${getConfig().LMS_BASE_URL}/dashboard/`}
3636
variant="inverse-primary"
3737
className="p-4 course-link"
3838
>

0 commit comments

Comments
 (0)