add toLowerCase to id
This commit is contained in:
		
							parent
							
								
									48d01810c4
								
							
						
					
					
						commit
						5bd5642c99
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -145,7 +145,7 @@
 | 
			
		|||
    }
 | 
			
		||||
 | 
			
		||||
    const redir = (id, term) => {
 | 
			
		||||
        window.location.href = "{{.Site.BaseURL}}" + `${id}#:~:text=${encodeURIComponent(term)}`
 | 
			
		||||
        window.location.href = "{{.Site.BaseURL}}" + `${id.toLowerCase()}#:~:text=${encodeURIComponent(term)}`
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    const fetch = id => ({
 | 
			
		||||
| 
						 | 
				
			
			@ -252,4 +252,4 @@
 | 
			
		|||
        })
 | 
			
		||||
    })
 | 
			
		||||
 | 
			
		||||
</script>
 | 
			
		||||
</script>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue