mirror of
				https://github.com/LonamiWebs/Telethon.git
				synced 2025-10-31 16:07:44 +03:00 
			
		
		
		
	Automatically redirect on documentation for exact matches
This commit is contained in:
		
							parent
							
								
									2fb42772c6
								
							
						
					
					
						commit
						1ad7712fde
					
				|  | @ -147,6 +147,7 @@ function updateSearch() { | ||||||
|         } else { |         } else { | ||||||
|             exactMatch.style.display = ""; |             exactMatch.style.display = ""; | ||||||
|             buildList(null, exactList, [destination, destinationu]); |             buildList(null, exactList, [destination, destinationu]); | ||||||
|  |             return destinationu[0]; | ||||||
|         } |         } | ||||||
|     } else { |     } else { | ||||||
|         contentDiv.style.display = ""; |         contentDiv.style.display = ""; | ||||||
|  | @ -169,4 +170,8 @@ if (query) { | ||||||
|     searchBox.value = query; |     searchBox.value = query; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| updateSearch(); | var exactUrl = updateSearch(); | ||||||
|  | var redirect = getQuery('redirect'); | ||||||
|  | if (exactUrl && redirect != 'no') { | ||||||
|  |     window.location = exactUrl; | ||||||
|  | } | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user