[Glitch] Fix /web redirecting to /web/web in web UI
				
					
				
			Port 13c00dc42c to glitch-soc
Signed-off-by: Thibaut Girka <thib@sitedethib.com>
			
			
This commit is contained in:
		
							parent
							
								
									ea391ce8a1
								
							
						
					
					
						commit
						aaee86e276
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -12,7 +12,7 @@ function main() { | ||||||
|   if (window.history && history.replaceState) { |   if (window.history && history.replaceState) { | ||||||
|     const { pathname, search, hash } = window.location; |     const { pathname, search, hash } = window.location; | ||||||
|     const path = pathname + search + hash; |     const path = pathname + search + hash; | ||||||
|     if (!(/^\/web[$/]/).test(path)) { |     if (!(/^\/web($|\/)/).test(path)) { | ||||||
|       history.replaceState(null, document.title, `/web${path}`); |       history.replaceState(null, document.title, `/web${path}`); | ||||||
|     } |     } | ||||||
|   } |   } | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue