diff --git a/ui/src/lib/company-routes.ts b/ui/src/lib/company-routes.ts index 48d71ef2..0cd8c3a3 100644 --- a/ui/src/lib/company-routes.ts +++ b/ui/src/lib/company-routes.ts @@ -1,3 +1,11 @@ +// [nexus] Every path segment the router treats as a board route (rendered +// under /:companyPrefix/*) must be listed here, otherwise +// extractCompanyPrefixFromPath misclassifies it as a company prefix and +// Link paths fail to get the prefix prepended. When a new board route is +// added in App.tsx, add it here too. Missing this was the cause of the +// Assistant link redirecting users to "/ASSISTANT" instead of +// "/NEX/assistant" — Phase 33 (v1.5) and Phase 40+ (v1.7) introduced +// routes without updating this set. const BOARD_ROUTE_ROOTS = new Set([ "dashboard", "companies", @@ -16,6 +24,15 @@ const BOARD_ROUTE_ROOTS = new Set([ "activity", "inbox", "design-guide", + // v1.5 Nexus Personal Assistant + "assistant", + // v1.7 Content Generation + "content-studio", + "convert", + // Dev / internal tools also under the board scope + "plugins", + "tests", + "settings", ]); const GLOBAL_ROUTE_ROOTS = new Set(["auth", "invite", "board-claim", "cli-auth", "docs", "instance"]);