Skip to content

Commit f84f412

Browse files
committed
feat: #22 fix course link in the courses list
1 parent cad5eb7 commit f84f412

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

frontend/courses/Courses.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ function Courses() {
2020
const [organizationId, setOrganizationId] = useState(null);
2121
const [queryParameters, setQueryParameters] = useState("");
2222
const apiBaseUrl = localStorage.getItem('apiBaseUrl');
23+
const platformBaseUrl = localStorage.getItem('platformBaseUrl');
2324

2425
const renderCourses = () => {
2526
if (!organizationId) {
@@ -130,7 +131,7 @@ function Courses() {
130131
sx={{ '&:last-child td, &:last-child th': { border: 0 } }}
131132
>
132133
<TableCell component="th" scope="row">
133-
<Link href={`/courses/${course.id}`}>{course.title}</Link>
134+
<Link href={`${platformBaseUrl}/courses/${course.id}`}>{course.title}</Link>
134135
</TableCell>
135136
<TableCell>{course.slug}</TableCell>
136137
<TableCell>

0 commit comments

Comments
 (0)