Skip to content

fix(navbar): point home button to root route - #613

Open
REAPER2705 wants to merge 1 commit into
freeCodeCamp:mainfrom
REAPER2705:fix/558-home-navigation
Open

fix(navbar): point home button to root route#613
REAPER2705 wants to merge 1 commit into
freeCodeCamp:mainfrom
REAPER2705:fix/558-home-navigation

Conversation

@REAPER2705

Copy link
Copy Markdown

The Navbar Home button (the FCC logo link) was hard-coded to /classes, which is a teacher-only route. As a result, admins, students, and unauthenticated users were redirected to the error page when they clicked the site logo.

This change makes the Home button point to /, the application's actual home page (pages/index.js), regardless of role or auth state, and brings it in line with the other "Menu" links in the codebase.

Fixes #558

Checklist:

Closes #XXXXX

The Navbar Home button (the FCC logo link) was hard-coded to /classes,
which is a teacher-only route. As a result, admins, students, and
unauthenticated users were redirected to the error page when they
clicked the site logo.

This change makes the Home button point to /, the application's actual
home page (pages/index.js), regardless of role or auth state, and
brings it in line with the other "Menu" links in the codebase.

Fixes freeCodeCamp#558
@REAPER2705
REAPER2705 requested a review from a team as a code owner August 14, 2026 17:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Home Button Navigation

1 participant