From 9ded75b55d335617e969704ff9caf88a4d3d1bb9 Mon Sep 17 00:00:00 2001
From: ale <ale@incal.net>
Date: Thu, 19 Dec 2019 09:24:22 +0000
Subject: [PATCH] Add the URL prefix on the main webapp

---
 server/http.go | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/server/http.go b/server/http.go
index c5e1fb0..6e6a082 100644
--- a/server/http.go
+++ b/server/http.go
@@ -144,8 +144,8 @@ func New(loginService *LoginService, authClient authclient.Client, config *Confi
 	// handler, optional CSRF protection, custom HTTP headers,
 	// etc.
 	mainh := http.NewServeMux()
-	mainh.HandleFunc("/logout", h.handleLogout)
-	mainh.HandleFunc("/", h.handleGrantTicket)
+	mainh.HandleFunc(h.urlFor("/logout"), h.handleLogout)
+	mainh.HandleFunc(h.urlFor("/"), h.handleGrantTicket)
 
 	loginh := login.New(mainh, devMgr, authClient,
 		config.AuthService, config.U2FAppID, urlPrefix,
-- 
GitLab