MOBILE-4270 forum: Fix discussion link handler in tablet

This part of code changed in 1fbb4c3880 to fix navigation, but now it didn't work in tablets because it tried to load the forum index page. Maybe this change breaks a case we haven't detected
main
Dani Palou 2023-05-11 11:44:45 +02:00
parent 9dd98f8743
commit 29483572b7
1 changed files with 1 additions and 5 deletions

View File

@ -65,12 +65,8 @@ export class AddonModForumDiscussionLinkHandlerService extends CoreContentLinksH
pageParams.parent = parseInt(params.parent);
}
const path = cmId && courseId
? `${AddonModForumModuleHandlerService.PAGE_NAME}/${courseId}/${cmId}/${discussionId}`
: `${AddonModForumModuleHandlerService.PAGE_NAME}/discussion/${discussionId}`;
CoreNavigator.navigateToSitePath(
path,
`${AddonModForumModuleHandlerService.PAGE_NAME}/discussion/${discussionId}`,
{ siteId, params: pageParams },
);
},