fix(web): settings deep links use section hash; agent report links to download detail

settingsPath() now builds /console/settings#section[/anchor] directly.
Smoke covers the old ?tab= redirects and every settings section hash
(hash-only URLs load from about:blank first). Agent report download
links go to /console/downloads/:id without the /tasks 404 probe.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
rootandClaude Opus 5.5 committed 2026-09-28 13:45:47 +08:00
1 parent d64f735810
commit 45ebef4a88
4 files changed
+27 -21

No files matched your search

+2 -2
View File
@@ -49,8 +49,8 @@ describe("控制台导航", () => {
});
it("settingsPath 只认新分区名", () => {
expect(settingsPath("automation", "cache").startsWith("/console/settings")).toBe(true);
expect(settingsPath("agent").startsWith("/console/settings")).toBe(true);
expect(settingsPath("automation", "cache")).toBe("/console/settings#automation/cache");
expect(settingsPath("agent")).toBe("/console/settings#agent");
});
});