From cb0a91eaa3f2167766df6d979daaaf11de9e61db Mon Sep 17 00:00:00 2001 From: Weegley <47633867+Weegley@users.noreply.github.com> Date: Fri, 14 Oct 2022 02:02:13 +0300 Subject: [PATCH] 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. --- templates/base.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/base.html b/templates/base.html index cf31d4d..d92e107 100644 --- a/templates/base.html +++ b/templates/base.html @@ -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); } },