Skip to content
This repository was archived by the owner on Nov 18, 2026. It is now read-only.

Fix blank pages at /organizations and /organizations/columns - #131

Merged
kflemin merged 2 commits into
mainfrom
routing-bugs
Nov 17, 2026
Merged

kflemin merged 2 commits into
mainfrom
routing-bugs

Conversation

@kflemin

@kflemin kflemin commented Nov 17, 2026

Copy link
Copy Markdown
Contributor
  • /organizations now redirects to Settings. The route matchers read segments[0].path on an empty URL, which threw and left a blank splash screen until a full reload. They now handle empty segments.
  • /organizations/columns now redirects to the property Column List instead of showing an empty panel. ColumnsComponent.setPageInfo also no longer throws when no child route matches.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

Both redirects are tested only with stubs, leaving navigation to the real lazy-loaded, backend-driven pages unverified.

No open issues 🎉

What changed in this PR

Fixes blank organization pages in the Angular frontend by adding default redirects and safely handling missing route data.

Changes:

  • Redirect /organizations to Settings and /organizations/columns to the property Column List.
  • Handle empty URL segments and missing column-page metadata without throwing.
  • Add regression tests for redirects, existing deep links, and page metadata.
File Description
src/​app/​modules/​organizations/​organizations.routes.ts Adds the Settings redirect and guards matchers against empty segments.
src/​app/​modules/​organizations/​organizations.routes.spec.ts Tests matchers, default redirects, and preserved deep links.
src/​app/​modules/​organizations/​columns/​columns.routes.ts Redirects the bare columns URL to the property list.
src/​app/​modules/​organizations/​columns/​columns.component.ts Provides fallback metadata when no child route matches.
src/​app/​modules/​organizations/​columns/​columns.component.spec.ts Tests fallback and matched-page metadata.

Review effort: Balanced

@kflemin
kflemin merged commit 65e7e09 into main Nov 17, 2026
2 checks passed
@kflemin
kflemin deleted the routing-bugs branch November 17, 2026 22:07
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants