diff --git a/src/addons/mod/lesson/components/index/addon-mod-lesson-index.html b/src/addons/mod/lesson/components/index/addon-mod-lesson-index.html
index e82d0d9c3..ab0d8373c 100644
--- a/src/addons/mod/lesson/components/index/addon-mod-lesson-index.html
+++ b/src/addons/mod/lesson/components/index/addon-mod-lesson-index.html
@@ -161,7 +161,9 @@
- {{groupOpt.name}}
+
+ {{groupOpt.name}}
+
diff --git a/src/addons/mod/lesson/lesson-lazy.module.ts b/src/addons/mod/lesson/lesson-lazy.module.ts
index 4b9bb7f6f..41c85cdd7 100644
--- a/src/addons/mod/lesson/lesson-lazy.module.ts
+++ b/src/addons/mod/lesson/lesson-lazy.module.ts
@@ -17,12 +17,7 @@ import { RouterModule, Routes } from '@angular/router';
const routes: Routes = [
{
- path: '',
- redirectTo: 'index',
- pathMatch: 'full',
- },
- {
- path: 'index',
+ path: ':courseId/:cmdId',
loadChildren: () => import('./pages/index/index.module').then( m => m.AddonModLessonIndexPageModule),
},
{
diff --git a/src/addons/mod/lesson/pages/user-retake/user-retake.html b/src/addons/mod/lesson/pages/user-retake/user-retake.html
index a6fa046c7..7554d3ae1 100644
--- a/src/addons/mod/lesson/pages/user-retake/user-retake.html
+++ b/src/addons/mod/lesson/pages/user-retake/user-retake.html
@@ -111,7 +111,9 @@
- {{ answer[0].buttonText }}
+
+ {{ answer[0].buttonText }}
+
diff --git a/src/addons/mod/lesson/services/handlers/module.ts b/src/addons/mod/lesson/services/handlers/module.ts
index 008da58cf..e2413c3a8 100644
--- a/src/addons/mod/lesson/services/handlers/module.ts
+++ b/src/addons/mod/lesson/services/handlers/module.ts
@@ -79,9 +79,10 @@ export class AddonModLessonModuleHandlerService implements CoreCourseModuleHandl
action: (event: Event, module: CoreCourseModule, courseId: number, options?: CoreNavigationOptions) => {
options = options || {};
options.params = options.params || {};
- Object.assign(options.params, { module, courseId });
+ Object.assign(options.params, { module });
+ const routeParams = '/' + courseId + '/' + module.id;
- CoreNavigator.instance.navigateToSitePath(AddonModLessonModuleHandlerService.PAGE_NAME, options);
+ CoreNavigator.instance.navigateToSitePath(AddonModLessonModuleHandlerService.PAGE_NAME + routeParams, options);
},
};
}