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:
Weegley 2022-10-14 02:02:13 +03:00 committed by GitHub
parent 887bc778df
commit cb0a91eaa3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);
}
},