MOBILE-3233 url: Fix URL not udpated when PTR in URL index

main
Dani Palou 2019-12-09 10:55:28 +01:00
parent 0efa423bf6
commit 4db28cfb00
1 changed files with 2 additions and 4 deletions

View File

@ -120,10 +120,8 @@ export class AddonModUrlIndexComponent extends CoreCourseModuleMainResourceCompo
} else {
mod = this.module;
if (!mod.contents || !mod.contents.length) {
// Try to load module contents, it's needed to get the URL with parameters.
return this.courseProvider.loadModuleContents(mod, this.courseId, undefined, false, false, undefined, 'url');
}
return this.courseProvider.loadModuleContents(mod, this.courseId, undefined, false, refresh, undefined, 'url');
}
}).then(() => {
// Always use the URL from the module because it already includes the parameters.