Skip to content

Bug: Unknown routes silently redirect to homepage instead of showing a 404 page #241

@pericharlabindhumadhavi-data

Description

Describe the bug
The catch-all route in routes/index.jsx silently redirects
users to the homepage when they visit an undefined URL:

<Route path="*" element={<Navigate to="/" replace />} />

Users who follow a broken link or mistype a URL get bounced
to home with no explanation. They have no idea the page
doesn't exist.

Where is it happening
src/routes/index.jsx — catch-all route at the bottom

Expected behavior
A proper 404 page should display with a friendly message
and a link back to the homepage.

Suggested Fix

  • Create a NotFound.jsx page with a 404 message and home link
  • Replace <Navigate to="/" replace /> with <NotFound />

I would like to work on this issue under GSSoC.
Please assign this issue to me.
Thank you.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions