Update base.html
Currently, when adding new client it's tile is not drawn if wg-ui is run in some path. https://server.tld - will work fine https://server.tld/wg-ui/ will fail adding tile.
This commit is contained in:
		
							parent
							
								
									887bc778df
								
							
						
					
					
						commit
						cb0a91eaa3
					
				|  | @ -376,7 +376,7 @@ | |||
|                     $("#modal_new_client").modal('hide'); | ||||
|                     toastr.success('Created new client successfully'); | ||||
|                     // Update the home page (clients page) after adding successfully | ||||
|                     if (window.location.pathname === "/") { | ||||
|                     if (window.location.pathname === "{{.basePath}}/") { | ||||
|                         populateClient(resp.id); | ||||
|                     } | ||||
|                 }, | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue