Skip to content

Add default 404 UI route handling with home navigation#4908

Draft
Copilot wants to merge 4 commits into
mainfrom
copilot/implement-404-error-page
Draft

Add default 404 UI route handling with home navigation#4908
Copilot wants to merge 4 commits into
mainfrom
copilot/implement-404-error-page

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 21, 2026

What is being addressed

The UI currently renders as if navigation succeeded even when the URL does not map to any page. This change introduces explicit not-found behavior so invalid routes surface a clear 404 state and a path back to the portal home.

How is this addressed

  • Not-found presentation

    • Added NotFoundLayout to render a generic, themed 404 message and a home link (/), reusing existing Fluent UI patterns.
  • Route fallback coverage

    • Added path="*" fallbacks in:
      • root layout routes
      • nested root sub-routes (/shared-services/*, /requests/*)
      • workspace provider nested routes
    • Unknown URLs now resolve to the 404 view instead of silently landing on unrelated content.
  • Example of the routing change

    <Routes>
      {/* existing routes */}
      <Route path="*" element={<NotFoundLayout />} />
    </Routes>
  • Documentation / template metadata

    • No docs, CHANGELOG.md, or template version updates are required for this UI behavior change.

Copilot AI changed the title [WIP] Add 404 error page for invalid URLs Add default 404 UI route handling with home navigation May 21, 2026
Copilot AI requested a review from rudolphjacksonm May 21, 2026 19:11
@rudolphjacksonm
Copy link
Copy Markdown
Collaborator

@copilot update changelog to mention default 404 page on invalid url

@rudolphjacksonm rudolphjacksonm requested a review from marrobi May 21, 2026 19:18
@rudolphjacksonm rudolphjacksonm added ui TRE UI ux Additional TRE user experience other than UI labels May 21, 2026
Copy link
Copy Markdown
Contributor Author

Copilot AI commented May 21, 2026

@copilot update changelog to mention default 404 page on invalid url

Updated in commit 231a374 by adding an Unreleased changelog entry for the default UI 404 page and home navigation on invalid URLs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ui TRE UI ux Additional TRE user experience other than UI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement a 404 error when a page doesn't exist

2 participants