Skip to content

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

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

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
@raisedadead

Copy link
Copy Markdown
Member

Thank you, @REAPER2705. The navbar on main now links the logo to / (components/navbar.tsx). That change came with the UI update in #616 and the TypeScript move. I will close this PR because main already has the fix.

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

2 participants