mirror of
https://github.com/ngoduykhanh/wireguard-ui.git
synced 2025-04-21 20:12:33 +03:00
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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue