classroom
classroom copied to clipboard
fix page redirects across all pages
Checklist:
- [x] I have read freeCodeCamp's contribution guidelines.
- [x] My pull request has a descriptive title (not a vague title like
Update index.md)
Co-authored by: Dylan Uribe [email protected] Co-authored by: Ann Pan [email protected]
Thank you to SenthilKumar Ilango [email protected] for mentoring us.
Resolved Issue #497 and refactored all page redirects. Redirects were previously handled with ctx.writeHead, but we replaced it with our method called redirectUser which uses the recommended page redirect instruction provided by next.js. (https://nextjs.org/docs/pages/api-reference/functions/get-server-side-props#redirect) Tested changes locally.
Closes #497