diff --git a/main/admin/course_add.php b/main/admin/course_add.php index 79fb715e81..58cf8d56f3 100755 --- a/main/admin/course_add.php +++ b/main/admin/course_add.php @@ -208,7 +208,17 @@ if ($form->validate()) { include $file_to_include; } - $course_info = CourseManager::create_course($course); + $courseInfo = CourseManager::create_course($course); + if ($courseInfo && isset($courseInfo['course_public_url'])) { + Display::addFlash( + Display::return_message( + get_lang('Added').' '. + Display::url($courseInfo['course_public_url'], $courseInfo['course_public_url']), + 'confirmation', + false + ) + ); + } header('Location: course_list.php'); exit;