File: 0012-Default-to-classic-UI.patch

package info (click to toggle)
prometheus 2.53.5%2Bds1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 25,388 kB
  • sloc: javascript: 2,423; yacc: 758; sh: 431; makefile: 231; lex: 189
file content (26 lines) | stat: -rw-r--r-- 630 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
From: Martina Ferrari <tina@debian.org>
Date: Mon, 14 Mar 2022 23:20:08 +0000
Subject: Default to classic UI

Forwarded: not-needed
Last-Update: Mon, 14 Mar 2022 23:20:08 +0000
---
 web/web.go | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/web/web.go b/web/web.go
index a6ac915..a3f049b 100644
--- a/web/web.go
+++ b/web/web.go
@@ -364,9 +364,9 @@ func New(logger log.Logger, o *Options) *Handler {
 		router = router.WithPrefix(o.RoutePrefix)
 	}
 
-	homePage := "/graph"
+	homePage := "/classic/graph"
 	if o.IsAgent {
-		homePage = "/agent"
+		homePage = "/classic/agent"
 	}
 
 	readyf := h.testReady