Skip to content

[BUG] Broken Navigation Links / 404 Routes in Personalised Recommendation Actions (NextBestActionWidget) #685

Description

@just-tanvi

Description

Several recommendation cards generated by getRecommendations() point to routes that don't exist in the current Next.js app structure.

These recommendations are displayed through NextBestActionWidget.tsx, and when users click them, they are taken to non-existent pages that return 404 errors.

This creates a frustrating experience because the dashboard suggests useful next steps, but some of those actions cannot actually be accessed.

Why This Matters

The recommendation widget is designed to guide users toward relevant resources and activities. When a recommended action leads to a broken route, it interrupts the user journey and reduces trust in the platform.

Users may assume the feature is broken or that content has been removed when the issue is actually caused by incorrect route mappings.

Examples

In src/utils/recommendations.ts:

Non-existent /projects routes

href: '/projects?filter=web&level=beginner'
href: '/projects?filter=data-science&level=beginner'

No /projects route currently exists.


Non-existent open source issues route

href: '/open-source/issues?label=good-first-issue'

The application contains an /opensource route, but no /open-source/issues page.


Non-existent internship calendar route

href: '/internships/calendar'

The internship calendar is available through the resources page, not as a standalone route.


Non-existent pathways route

href: '/pathways'

The application uses a different route structure, so /pathways results in a 404.


Non-existent community introduction route

href: '/community/introduce'

There is currently no /community/introduce page.

Impact

  • Recommendation cards can lead users to 404 pages.
  • Breaks the intended onboarding and discovery flow.
  • Creates confusion for users following suggested next actions.
  • Reduces the usefulness of the recommendation system.

Suggested Fix

Review all routes defined in src/utils/recommendations.ts and update them to match the actual pages available in src/app.

Potential corrections include:

  • Replace invalid /projects routes with the appropriate existing resource pages.
  • Update /open-source/issues to the correct open-source section.
  • Redirect internship calendar recommendations to the resources page where the calendar is available.
  • Replace /pathways with the correct pathway route.
  • Update /community/introduce to an existing community page.

Acceptance Criteria

  • Audit all recommendation links in src/utils/recommendations.ts.
  • Replace invalid routes with existing application routes.
  • Verify that every recommendation card opens a valid page.
  • Confirm no recommendation results in a 404 page.
  • Test navigation from the recommendation widget after the changes.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions