MOBILE-3233 url: Fix URL not udpated when PTR in URL index
parent
0efa423bf6
commit
4db28cfb00
|
@ -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');
|
||||
}
|
||||
// Try to load module contents, it's needed to get the URL with parameters.
|
||||
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.
|
||||
|
|
Loading…
Reference in New Issue