freeCodeCamp / freeCodeCamp/classroom

[Bug]: Home Button Navigation

Open
#558 1 comment 0 reactions 2 assignees Claimed by @CarlyAThomas View on GitHub
bug
Dominant language
JavaScript
Stars
155
Forks
138
PR merge metrics
No merged PRs in 30d

Description

### Describe the bug

The Home Button at the top of the page currently takes the user to different pages depending on their role:
Admin - Admin page
Teacher - Teacher page
Other role / Not logged in - Error page

This could lead to confusion, especially if users who are not logged in click on that button.

### To Reproduce

1. Make sure you can successfully log in via Github (use the Github sign-in option, not Auth0)
2. Run "npx prisma studio" in the terminal, navigate to the "Users" table, change the role of your user.
3. Make sure you click "Save changes" in prisma studio
4. Sign out of the Classroom app and then sign back in
5. Click the Home Button

### Expected behavior

I think this button should take you back to the home page, replacing the current functionality of the "Menu" button.

### Screenshots

Image

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.