forked from EVOgeek/Vmeda.Online
		
	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 handler
This commit is contained in:
		
							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…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user