MOBILE-4362 glossary: Fix some entry links not handled properly
If the entry link used the view.php endpoint, the index link handler treated it instead of the entry link handlermain
parent
4e98e9f64a
commit
f4030ab5a7
|
@ -28,6 +28,13 @@ export class AddonModGlossaryIndexLinkHandlerService extends CoreContentLinksMod
|
|||
super('AddonModGlossary', 'glossary', 'g');
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritdoc
|
||||
*/
|
||||
async isEnabled(siteId: string, url: string, params: Record<string, string>): Promise<boolean> {
|
||||
return !params.hook && !params.eid;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
export const AddonModGlossaryIndexLinkHandler = makeSingleton(AddonModGlossaryIndexLinkHandlerService);
|
||||
|
|
Loading…
Reference in New Issue