diff --git a/src/core/features/course/services/course.ts b/src/core/features/course/services/course.ts index d0997cd51..94609b78b 100644 --- a/src/core/features/course/services/course.ts +++ b/src/core/features/course/services/course.ts @@ -1266,6 +1266,13 @@ export class CoreCourseProvider { course: CoreCourseAnyCourseData | { id: number }, navOptions?: CoreNavigationOptions, ): Promise { + if (course.id === CoreSites.getCurrentSite()?.getSiteHomeId()) { + // Open site home. + await CoreNavigator.navigate('/main/home/site', navOptions); + + return; + } + const loading = await CoreDomUtils.showModalLoading(); // Wait for site plugins to be fetched.