diff --git a/web/templates/_base.html b/web/templates/_base.html
index b32195cdcf..c36eb1b33b 100644
--- a/web/templates/_base.html
+++ b/web/templates/_base.html
@@ -29,7 +29,7 @@
{{$consoles := getConsoles}}
{{if $consoles}}
- - Consoles
+ - Consoles
{{ end }}
- Alerts
- Graph
diff --git a/web/web.go b/web/web.go
index 397fa73358..93a6c952a9 100644
--- a/web/web.go
+++ b/web/web.go
@@ -139,11 +139,11 @@ func getTemplateFile(name string) (string, error) {
}
func getConsoles(pathPrefix string) string {
- if _, err := os.Stat(pathPrefix + *consoleTemplatesPath + "/index.html"); !os.IsNotExist(err) {
+ if _, err := os.Stat(*consoleTemplatesPath + "/index.html"); !os.IsNotExist(err) {
return pathPrefix + "consoles/index.html"
}
if *userAssetsPath != "" {
- if _, err := os.Stat(pathPrefix + *userAssetsPath + "/index.html"); !os.IsNotExist(err) {
+ if _, err := os.Stat(*userAssetsPath + "/index.html"); !os.IsNotExist(err) {
return pathPrefix + "user/index.html"
}
}