diff --git a/app/vmalert/tpl/footer.qtpl b/app/vmalert/tpl/footer.qtpl
index 28cfec5d7f..eef27785d4 100644
--- a/app/vmalert/tpl/footer.qtpl
+++ b/app/vmalert/tpl/footer.qtpl
@@ -1,12 +1,19 @@
{% import (
- "github.com/VictoriaMetrics/VictoriaMetrics/lib/httpserver"
+ "net/http"
+ "strings"
) %}
-{% func Footer() %}
- {% code pathPrefix := httpserver.GetPathPrefix() %}
+
+{% func Footer(r *http.Request) %}
+{%code
+ prefix := "/vmalert/"
+ if strings.HasPrefix(r.URL.Path, prefix) {
+ prefix = ""
+ }
+%}
-
-
+
+
+//line app/vmalert/tpl/footer.qtpl:15
+ qw422016.E().S(prefix)
+//line app/vmalert/tpl/footer.qtpl:15
+ qw422016.N().S(`static/js/jquery-3.6.0.min.js" type="text/javascript">
+//line app/vmalert/tpl/footer.qtpl:16
+ qw422016.E().S(prefix)
+//line app/vmalert/tpl/footer.qtpl:16
+ qw422016.N().S(`static/js/bootstrap.bundle.min.js" type="text/javascript">