diff --git a/src/course-home/data/api.js b/src/course-home/data/api.js index 130a6e66..84468b77 100644 --- a/src/course-home/data/api.js +++ b/src/course-home/data/api.js @@ -117,8 +117,7 @@ export async function getDatesTabData(courseId) { return {}; } if (httpErrorStatus === 401) { - global.location.replace(`${getConfig().LMS_BASE_URL}/courses/${courseId}/course`); - return {}; + global.location.replace(`${getConfig().BASE_URL}/course/${courseId}/home`); } throw error; }