Merge pull request #2084 from dpalou/MOBILE-3068

MOBILE-3068 forum: Don't use phantom tab in forum index links
main
Dani Palou 2019-08-28 16:08:42 +02:00 committed by GitHub
commit f4eee3c0e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -68,7 +68,8 @@ export class AddonModForumIndexLinkHandler extends CoreContentLinksModuleIndexHa
forumId = parseInt(params.f, 10);
this.courseProvider.getModuleBasicInfoByInstance(forumId, 'forum', siteId).then((module) => {
this.courseHelper.navigateToModule(parseInt(module.id, 10), siteId, module.course);
this.courseHelper.navigateToModule(parseInt(module.id, 10), siteId, module.course, undefined,
undefined, undefined, navCtrl);
}).finally(() => {
// Just in case. In fact we need to dismiss the modal before showing a toast or error message.
modal.dismiss();