diff --git a/src/addons/mod/resource/components/index/addon-mod-resource-index.html b/src/addons/mod/resource/components/index/addon-mod-resource-index.html
index ead66d9a9..e0701e66d 100644
--- a/src/addons/mod/resource/components/index/addon-mod-resource-index.html
+++ b/src/addons/mod/resource/components/index/addon-mod-resource-index.html
@@ -11,6 +11,10 @@
+
+
+
+
diff --git a/src/addons/mod/resource/components/index/index.scss b/src/addons/mod/resource/components/index/index.scss
index b14ad8392..9874efd46 100644
--- a/src/addons/mod/resource/components/index/index.scss
+++ b/src/addons/mod/resource/components/index/index.scss
@@ -8,4 +8,8 @@
font-size: 24px;
}
}
+
+ .addon-mod_resource-afterlink {
+ font-size: var(--text-size);
+ }
}
diff --git a/src/addons/mod/resource/components/index/index.ts b/src/addons/mod/resource/components/index/index.ts
index 0830bae6a..50cf5907f 100644
--- a/src/addons/mod/resource/components/index/index.ts
+++ b/src/addons/mod/resource/components/index/index.ts
@@ -112,6 +112,8 @@ export class AddonModResourceIndexComponent extends CoreCourseModuleMainResource
throw new CoreError(Translate.instant('core.filenotfound'));
}
+ this.module.afterlink = await AddonModResourceHelper.getAfterLinkDetails(this.module, this.courseId);
+
// Get the resource instance to get the latest name/description and to know if it's embedded.
const resource = await AddonModResource.getResourceData(this.courseId, this.module.id);
this.description = resource.intro || '';