fix: fixed module button href (#508)
This commit is contained in:
@@ -31,7 +31,7 @@ export const CollapseMenuBody = ({ isOpen }) => {
|
||||
|
||||
return (
|
||||
<div className="d-flex flex-column shadow-sm nav-small-menu">
|
||||
<Button as="a" href="/" variant="inverse-primary">
|
||||
<Button as="a" href={`${getConfig().LMS_BASE_URL}/dashboard/`} variant="inverse-primary">
|
||||
{formatMessage(messages.course)}
|
||||
</Button>
|
||||
{programsEnabled && (
|
||||
|
||||
@@ -6,7 +6,7 @@ exports[`CollapseMenuBody render 1`] = `
|
||||
>
|
||||
<Button
|
||||
as="a"
|
||||
href="/"
|
||||
href="http://localhost:18000/dashboard/"
|
||||
variant="inverse-primary"
|
||||
>
|
||||
Courses
|
||||
@@ -74,7 +74,7 @@ exports[`CollapseMenuBody render unauthenticated 1`] = `
|
||||
>
|
||||
<Button
|
||||
as="a"
|
||||
href="/"
|
||||
href="http://localhost:18000/dashboard/"
|
||||
variant="inverse-primary"
|
||||
>
|
||||
Courses
|
||||
@@ -110,7 +110,7 @@ exports[`CollapseMenuBody render with disabled programs 1`] = `
|
||||
>
|
||||
<Button
|
||||
as="a"
|
||||
href="/"
|
||||
href="http://localhost:18000/dashboard/"
|
||||
variant="inverse-primary"
|
||||
>
|
||||
Courses
|
||||
|
||||
@@ -11,7 +11,7 @@ exports[`ExpandedHeader render 1`] = `
|
||||
<Button
|
||||
as="a"
|
||||
className="p-4 course-link"
|
||||
href="/"
|
||||
href="http://localhost:18000/dashboard/"
|
||||
variant="inverse-primary"
|
||||
>
|
||||
Courses
|
||||
@@ -62,7 +62,7 @@ exports[`ExpandedHeader render with disabled programs 1`] = `
|
||||
<Button
|
||||
as="a"
|
||||
className="p-4 course-link"
|
||||
href="/"
|
||||
href="http://localhost:18000/dashboard/"
|
||||
variant="inverse-primary"
|
||||
>
|
||||
Courses
|
||||
|
||||
@@ -34,7 +34,7 @@ export const ExpandedHeader = () => {
|
||||
|
||||
<Button
|
||||
as="a"
|
||||
href="/"
|
||||
href={`${getConfig().LMS_BASE_URL}/dashboard/`}
|
||||
variant="inverse-primary"
|
||||
className="p-4 course-link"
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user