From fc5c7dc2a8cbcf40d2d0261aadc60a1e1438133a Mon Sep 17 00:00:00 2001 From: Paul Date: Tue, 13 Dec 2022 19:50:05 +0100 Subject: [PATCH] Fix login redirect problems. 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 1f0e3384..c75aa392 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}}'; } }