AA-127: Fix outline tab redirect URL (#122)

Co-authored-by: Carla Duarte <cduarte@edx.org>
This commit is contained in:
Carla Duarte
2020-07-23 16:01:46 -04:00
committed by GitHub
parent f715fd5ed6
commit 175675da55

View File

@@ -59,7 +59,7 @@ export async function getOutlineTabData(courseId) {
} catch (error) {
const { httpErrorStatus } = error && error.customAttributes;
if (httpErrorStatus === 404) {
global.location.replace(`${getConfig().LMS_BASE_URL}/courses/${courseId}/home`);
global.location.replace(`${getConfig().LMS_BASE_URL}/courses/${courseId}/course/`);
return {};
}
throw error;