From d32064dd0ed5a7a197a45e2f682e41c0bd79ec84 Mon Sep 17 00:00:00 2001 From: Paul Dee Date: Tue, 13 Dec 2022 21:29:07 +0100 Subject: [PATCH] Fix login redirect problems. (#270) After login, my browser gets a 404 for `/wireguard`. `wireguard` might not be explicitly set by `BASE_PATH`, so just use the `{{.basePath}}` instead. Fixes #259. --- templates/login.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/login.html b/templates/login.html index 1f0e338..c75aa39 100644 --- a/templates/login.html +++ b/templates/login.html @@ -85,7 +85,7 @@ if (nextURL) { window.location.href = nextURL; } else { - window.location.href = '/wireguard/'; + window.location.href = '/{{.basePath}}'; } }