From 4db28cfb0099749e7939b99969cd9504ae533280 Mon Sep 17 00:00:00 2001 From: Dani Palou Date: Mon, 9 Dec 2019 10:55:28 +0100 Subject: [PATCH] MOBILE-3233 url: Fix URL not udpated when PTR in URL index --- src/addon/mod/url/components/index/index.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/addon/mod/url/components/index/index.ts b/src/addon/mod/url/components/index/index.ts index 1bb02097b..b9381aae0 100644 --- a/src/addon/mod/url/components/index/index.ts +++ b/src/addon/mod/url/components/index/index.ts @@ -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.