| 
				
				
					
				
				
				 | 
			
			 | 
			@@ -36,9 +36,16 @@ export default () => { | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			    if (/^\d+$/.test (title)) | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			      { | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
				void (async () => { | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
				  const res = await axios.get (`${ API_BASE_URL }/wiki/${ title }`) | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
				  const data = res.data as WikiPage | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
				  navigate (`/wiki/${ data.title }`, { replace: true }) | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
				  try | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
				  { | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
				    const res = await axios.get (`${ API_BASE_URL }/wiki/${ title }`) | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
				    const data = res.data as WikiPage | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
				    navigate (`/wiki/${ encodeURIComponent(data.title) }`, { replace: true }) | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
				  } | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
				  catch | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
				  { | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
				    ; | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
				  } | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
				}) () | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			
  | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
				return | 
		
		
	
	
		
			
				| 
				
				
				
					
				
				 | 
			
			 | 
			@@ -51,6 +58,8 @@ export default () => { | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
				    `${ API_BASE_URL }/wiki/title/${ encodeURIComponent (title) }`, | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
				    { params: version ? { version } : { } }) | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
				const data = toCamel (res.data as any, { deep: true }) as WikiPage | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
				if (data.title !== title) | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
				  navigate (`/wiki/${ encodeURIComponent(data.title) }`, { replace: true }) | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
				setWikiPage (data) | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
				WikiIdBus.set (data.id) | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			      } | 
		
		
	
	
		
			
				| 
				
					
				
				
				
				 | 
			
			 | 
			
  |