MOBILE-3320 glossary: Fix link handlers

main
Pau Ferrer Ocaña 2021-06-04 12:53:24 +02:00
parent 224a7baa7d
commit 15e35c7bac
2 changed files with 2 additions and 10 deletions

View File

@ -47,12 +47,8 @@ export class AddonModGlossaryEditLinkHandlerService extends CoreContentLinksHand
const module = await CoreCourse.getModuleBasicInfo(cmId, siteId); const module = await CoreCourse.getModuleBasicInfo(cmId, siteId);
await CoreNavigator.navigateToSitePath( await CoreNavigator.navigateToSitePath(
AddonModGlossaryModuleHandlerService.PAGE_NAME + '/edit/0', AddonModGlossaryModuleHandlerService.PAGE_NAME + `/${module.course}/${module.id}/edit/0`,
{ {
params: {
cmId: module.id,
courseId: module.course,
},
siteId, siteId,
}, },
); );

View File

@ -52,12 +52,8 @@ export class AddonModGlossaryEntryLinkHandlerService extends CoreContentLinksHan
); );
await CoreNavigator.navigateToSitePath( await CoreNavigator.navigateToSitePath(
AddonModGlossaryModuleHandlerService.PAGE_NAME + `/entry/${entryId}`, AddonModGlossaryModuleHandlerService.PAGE_NAME + `/${module.course}/${module.id}/entry/${entryId}`,
{ {
params: {
cmId: module.id,
courseId: module.course,
},
siteId, siteId,
}, },
); );