Skip to content

Commit

Permalink
fix: fixed module button href
Browse files Browse the repository at this point in the history
  • Loading branch information
PKulkoRaccoonGang committed Nov 20, 2024
1 parent 82dbc27 commit f6202bc
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 && (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ exports[`CollapseMenuBody render 1`] = `
>
<Button
as="a"
href="/"
href="http://localhost:18000/dashboard/"
variant="inverse-primary"
>
Courses
Expand Down Expand Up @@ -74,7 +74,7 @@ exports[`CollapseMenuBody render unauthenticated 1`] = `
>
<Button
as="a"
href="/"
href="http://localhost:18000/dashboard/"
variant="inverse-primary"
>
Courses
Expand Down Expand Up @@ -110,7 +110,7 @@ exports[`CollapseMenuBody render with disabled programs 1`] = `
>
<Button
as="a"
href="/"
href="http://localhost:18000/dashboard/"
variant="inverse-primary"
>
Courses
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"
>
Expand Down

0 comments on commit f6202bc

Please sign in to comment.