[dashboard] Fix broken backup menu links missing cluster context by sircthulhu · Pull Request #2232 · cozystack/cozystack

@sircthulhu

Backup resources (plans, backupjobs, backups) are not
ApplicationDefinitions, so ensureNavigation() never adds their
baseFactoriesMapping entries. Without these mappings the OpenUI
frontend cannot resolve the {cluster} context for backup pages,
producing broken sidebar links with an empty cluster segment
(e.g. /openapi-ui//tenant-root/...).

Add the three missing entries to the static Navigation resource.

Assisted-By: Claude AI
Signed-off-by: Kirill Ilin <stitch14@yandex.ru>

@dosubot dosubot bot added the size:XS

This PR changes 0-9 lines, ignoring generated files.

label

Mar 17, 2026

@dosubot dosubot bot added the bug

Something isn't working

label

Mar 17, 2026

gemini-code-assist[bot]

@dosubot dosubot bot added the lgtm

This PR has been approved by a maintainer

label

Mar 17, 2026

@kvaps kvaps deleted the fix/dashboard-backup-menu-links branch

March 26, 2026 12:49

This was referenced

Mar 26, 2026

sircthulhu added a commit that referenced this pull request

Mar 26, 2026
…ng cluster context (#2270)

# Description
Backport of #2232 to `release-1.0`.

sircthulhu added a commit that referenced this pull request

Mar 26, 2026
…ng cluster context (#2269)

# Description
Backport of #2232 to `release-1.1`.