From 3cd3bcc89babc6f550a481b459a16d4666a7e911 Mon Sep 17 00:00:00 2001 From: GeekCorner <45696571+GeekCornerGH@users.noreply.github.com> Date: Sun, 28 Aug 2022 12:01:44 +0200 Subject: [PATCH] fix: Permit admin page on subpaths --- src/static/templates/admin/base.hbs | 22 ++++++++++---------- src/static/templates/admin/diagnostics.hbs | 2 +- src/static/templates/admin/organizations.hbs | 8 +++---- src/static/templates/admin/settings.hbs | 8 +++---- src/static/templates/admin/users.hbs | 22 ++++++++++---------- 5 files changed, 31 insertions(+), 31 deletions(-) diff --git a/src/static/templates/admin/base.hbs b/src/static/templates/admin/base.hbs index d385cdcd..3900b805 100644 --- a/src/static/templates/admin/base.hbs +++ b/src/static/templates/admin/base.hbs @@ -4,9 +4,9 @@ - + Vaultwarden Admin Panel - + - + - + diff --git a/src/static/templates/admin/diagnostics.hbs b/src/static/templates/admin/diagnostics.hbs index 6fd08f4a..0acd7b8e 100644 --- a/src/static/templates/admin/diagnostics.hbs +++ b/src/static/templates/admin/diagnostics.hbs @@ -352,7 +352,7 @@ supportString += "* Reverse proxy and version: \n"; supportString += "* Other relevant information: \n"; - let jsonResponse = await fetch('{{urlpath}}/admin/diagnostics/config'); + let jsonResponse = await fetch('../admin/diagnostics/config'); const configJson = await jsonResponse.json(); supportString += "\n### Config (Generated via diagnostics page)\n
Show Running Config\n" supportString += "\n**Environment settings which are overridden:** {{page_data.overrides}}\n" diff --git a/src/static/templates/admin/organizations.hbs b/src/static/templates/admin/organizations.hbs index ac3c0f30..24245624 100644 --- a/src/static/templates/admin/organizations.hbs +++ b/src/static/templates/admin/organizations.hbs @@ -48,9 +48,9 @@ - - - + + + - + + +