mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
cadf1eb5ab
### 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/). |
||
---|---|---|
.. | ||
config | ||
datasource | ||
deployment | ||
multiarch | ||
notifier | ||
remoteread | ||
remotewrite | ||
rule | ||
static | ||
templates | ||
tpl | ||
utils | ||
main.go | ||
main_test.go | ||
Makefile | ||
manager.go | ||
manager_test.go | ||
README.md | ||
replay.go | ||
replay_test.go | ||
web.go | ||
web.qtpl | ||
web.qtpl.go | ||
web_test.go | ||
web_types.go | ||
web_types_test.go |
See vmalert docs here.
vmalert docs can be edited at docs/vmalert.md.