VictoriaMetrics/app/vmalert
Zhu Jiekun cadf1eb5ab
vmalert: [bug] fixed System hyperlink 404 redirect (#6620)
### 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/).
2024-07-11 11:43:00 +02:00
..
config all: consistently use 'any' instead of 'interface{}' 2024-07-10 00:20:37 +02:00
datasource all: consistently use 'any' instead of 'interface{}' 2024-07-10 00:20:37 +02:00
deployment app/vmalert: include it into the next release 2020-04-28 00:10:12 +03:00
multiarch deployment: build image for vmagent streamaggr benchmark (#6515) 2024-06-24 16:28:50 +02:00
notifier all: consistently use 'any' instead of 'interface{}' 2024-07-10 00:20:37 +02:00
remoteread app/vmalert: adds idleConnTimeout flags and retry trivial network errors (#6382) 2024-05-30 17:54:42 +02:00
remotewrite app/vmalert: follow-up bc37b279aa 2024-06-20 15:12:53 +02:00
rule all: consistently use 'any' instead of 'interface{}' 2024-07-10 00:20:37 +02:00
static app/vmalert: fix links with anchors in vmalert's UI (#6146) 2024-04-22 15:02:10 +02:00
templates all: consistently use 'any' instead of 'interface{}' 2024-07-10 00:20:37 +02:00
tpl app/vmalert: show on UI groups error after reload config (#4543) 2023-07-03 14:59:52 +02:00
utils app/vmbackup: support client-side TLS configuration for create/delete snapshot API (#5738) 2024-02-08 15:52:00 +01:00
main.go vmalert: allow omitting -replay.timeTo in replay mode, default valu… (#6575) 2024-07-05 09:27:34 +02:00
main_test.go all: use Gauge instead of Counter for *_config_last_reload_successful metrics 2023-12-20 14:23:42 +02:00
Makefile vmalert: allow omitting -replay.timeTo in replay mode, default valu… (#6575) 2024-07-05 09:27:34 +02:00
manager.go app/vmalert: fix data race during hot-config reload (#5698) 2024-01-26 22:42:21 +01:00
manager_test.go vmalert-tool: implement unittest (#4789) 2023-10-13 13:54:33 +02:00
README.md all: replace old https://docs.victoriametrics.com/vmalert.html url with the new one - https://docs.victoriametrics.com/vmalert/ 2024-04-18 01:44:12 +02:00
replay.go vmalert: allow omitting -replay.timeTo in replay mode, default valu… (#6575) 2024-07-05 09:27:34 +02:00
replay_test.go vmalert: exit replay mode with non-zero code if generated samples are… (#6513) 2024-06-20 13:20:40 +02:00
web.go vmalert: [bug] fixed System hyperlink 404 redirect (#6620) 2024-07-11 11:43:00 +02:00
web.qtpl app/vmalert: follow-up after b60dcbe11f 2024-02-20 13:07:05 +01:00
web.qtpl.go app/vmalert: follow-up after b60dcbe11f 2024-02-20 13:07:05 +01:00
web_test.go all: consistently use 'any' instead of 'interface{}' 2024-07-10 00:20:37 +02:00
web_types.go all: consistently use 'any' instead of 'interface{}' 2024-07-10 00:20:37 +02:00
web_types_test.go vmalert-tool: implement unittest (#4789) 2023-10-13 13:54:33 +02:00

See vmalert docs here.

vmalert docs can be edited at docs/vmalert.md.