MOBILE-3398 data: Fix ##moreurl## links

main
Dani Palou 2020-04-22 13:16:35 +02:00
parent 333f3f7188
commit c744de17c1
2 changed files with 2 additions and 0 deletions

View File

@ -27,6 +27,7 @@ export class AddonModDataApproveLinkHandler extends CoreContentLinksHandlerBase
name = 'AddonModDataApproveLinkHandler';
featureName = 'CoreCourseModuleDelegate_AddonModData';
pattern = /\/mod\/data\/view\.php.*([\?\&](d|approve|disapprove)=\d+)/;
priority = 50; // Higher priority than the default link handler for view.php.
constructor(private dataProvider: AddonModDataProvider, private dataHelper: AddonModDataHelperProvider) {
super();

View File

@ -29,6 +29,7 @@ export class AddonModDataShowLinkHandler extends CoreContentLinksHandlerBase {
name = 'AddonModDataShowLinkHandler';
featureName = 'CoreCourseModuleDelegate_AddonModData';
pattern = /\/mod\/data\/view\.php.*([\?\&](d|rid|page|group|mode)=\d+)/;
priority = 50; // Higher priority than the default link handler for view.php.
constructor(private linkHelper: CoreContentLinksHelperProvider, private dataProvider: AddonModDataProvider,
private courseProvider: CoreCourseProvider, private domUtils: CoreDomUtilsProvider) {