mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-12-19 15:06:25 +01:00
2ea575e776
### Describe Your Changes
As mentioned in https://github.com/VictoriaMetrics/VictoriaMetrics/issues/6603, some hyperlinks under `vmalert` -> `System`
section is not working as expected.
Pages and redirection:
- For page `http://127.0.0.1:8880/`: `flags` button will redirect to
`http://127.0.0.1:8880/flags`
- For page `http://127.0.0.1:8880/vmalert`:
`http://127.0.0.1:8880/flags`
- For page `http://127.0.0.1:8880/vmalert/`:
`http://127.0.0.1:8880/vmalert/flags` (page not exists)
- Similar redirection could be observed with `-http.pathPrefix`
Two potential ways to avoid 404 redirection:
1. **avoid visiting `/vmalert/`** (I'm trying to do this).
2. provide support for `/vmalert/flags`.
`/vmalert/` could be visit only when user click other navigator (e.g.
Group) and click vmalert again:
![Peek 2024-07-10
10-07](https://github.com/VictoriaMetrics/VictoriaMetrics/assets/30280396/13d7b147-a1b6-4e93-9ee0-26f881a16bef)
Because: `http://127.0.0.1:8880/vmalert/groups?search=` + `<a
class="nav-link" href=".">` = `http://127.0.0.1:8880/vmalert/`
So I'm trying to change the `href="."` to `href="../vmalert"`.
### Checklist
The following checks are **mandatory**:
- [X] My change adheres [VictoriaMetrics contributing
guidelines](https://docs.victoriametrics.com/contributing/).
(cherry picked from commit
|
||
---|---|---|
.. | ||
config | ||
datasource | ||
deployment | ||
multiarch | ||
notifier | ||
remoteread | ||
remotewrite | ||
rule | ||
static | ||
templates | ||
tpl | ||
utils | ||
main_test.go | ||
main.go | ||
Makefile | ||
manager_test.go | ||
manager.go | ||
README.md | ||
replay_test.go | ||
replay.go | ||
web_test.go | ||
web_types_test.go | ||
web_types.go | ||
web.go | ||
web.qtpl | ||
web.qtpl.go |
See vmalert docs here.
vmalert docs can be edited at docs/vmalert.md.