Skip to content

Commit 49d64ff

Browse files
fix: fixed module button href (#508)
1 parent fe658c1 commit 49d64ff

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

src/containers/LearnerDashboardHeader/CollapsedHeader/CollapseMenuBody.jsx

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

3232
return (
3333
<div className="d-flex flex-column shadow-sm nav-small-menu">
34-
<Button as="a" href="/" variant="inverse-primary">
34+
<Button as="a" href={`${getConfig().LMS_BASE_URL}/dashboard/`} variant="inverse-primary">
3535
{formatMessage(messages.course)}
3636
</Button>
3737
{programsEnabled && (

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

Lines changed: 3 additions & 3 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
@@ -110,7 +110,7 @@ exports[`CollapseMenuBody render with disabled programs 1`] = `
110110
>
111111
<Button
112112
as="a"
113-
href="/"
113+
href="http://localhost:18000/dashboard/"
114114
variant="inverse-primary"
115115
>
116116
Courses

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

Lines changed: 2 additions & 2 deletions
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
@@ -62,7 +62,7 @@ exports[`ExpandedHeader render with disabled programs 1`] = `
6262
<Button
6363
as="a"
6464
className="p-4 course-link"
65-
href="/"
65+
href="http://localhost:18000/dashboard/"
6666
variant="inverse-primary"
6767
>
6868
Courses

src/containers/LearnerDashboardHeader/ExpandedHeader/index.jsx

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

3535
<Button
3636
as="a"
37-
href="/"
37+
href={`${getConfig().LMS_BASE_URL}/dashboard/`}
3838
variant="inverse-primary"
3939
className="p-4 course-link"
4040
>

0 commit comments

Comments
 (0)