fix: fixed module button href (#508)

This commit is contained in:
Peter Kulko
2024-12-12 10:30:30 +02:00
committed by GitHub
parent fe658c1796
commit 49d64ff5c6
4 changed files with 7 additions and 7 deletions

View File

@@ -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 && (

View File

@@ -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

View File

@@ -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

View File

@@ -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"
>