mirror of
https://github.com/vee1e/capa.git
synced 2026-09-01 10:48:51 +00:00
* webui: fix 404 for \"View rule in capa-rules\" links The createCapaRulesUrl function was constructing URLs by lowercasing the rule name and replacing spaces with hyphens, which produced URLs like /rules/packaged-as-single-file-.net-application/ (404). The capa-rules website uses the original rule name with URL encoding (e.g. /rules/packaged%20as%20single-file%20.NET%20application/). Use encodeURIComponent() on the rule name to produce correct URLs. Fixes #2482 * refactor: extract baseUrl constant in createCapaRulesUrl per code review |
||
|---|---|---|
| .. | ||
| explorer | ||
| public | ||
| rules | ||