diff --git a/src/addons/mod/glossary/services/handlers/index-link.ts b/src/addons/mod/glossary/services/handlers/index-link.ts index 3658be016..6dd91ec52 100644 --- a/src/addons/mod/glossary/services/handlers/index-link.ts +++ b/src/addons/mod/glossary/services/handlers/index-link.ts @@ -28,6 +28,13 @@ export class AddonModGlossaryIndexLinkHandlerService extends CoreContentLinksMod super('AddonModGlossary', 'glossary', 'g'); } + /** + * @inheritdoc + */ + async isEnabled(siteId: string, url: string, params: Record): Promise { + return !params.hook && !params.eid; + } + } export const AddonModGlossaryIndexLinkHandler = makeSingleton(AddonModGlossaryIndexLinkHandlerService);