Skip to content

Bug: Protected footer links should redirect unauthenticated users to Login instead of showing Not Found #282

Description

@MeghPatel-007

Description

Some footer navigation links currently redirect unauthenticated users directly to protected pages.

Instead of guiding users through authentication, the application returns a Not Found page which creates confusion and breaks navigation flow.

Steps to Reproduce

  1. Open the application without logging in
  2. Navigate using footer links
  3. Open protected sections (example: AI Helper)
  4. Observe page behavior

Actual Behavior

  • User reaches a Not Found page
  • Navigation appears broken
  • No indication that login is required

Expected Behavior

  • Protected routes should detect unauthenticated users
  • Redirect users to Login/Register page
  • After successful login, redirect back to requested page

Possible Implementation

  • Add route guards
  • Check authentication state before navigation
  • Store intended destination and restore after login
  • Show access-required messaging

Additional Notes

This improves onboarding and prevents broken navigation for first-time users.

Screenshot attached for reference.

Image

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions