February 14, 2023, 1:48am
I’m not sure where the redirect is meant to be implemented at to be honest. I wanna work on this issue and combine it with another PR I’m working on (the one where the redirect test itself is updated to Typescript)
Additional advice would be very helpful here.
Hmm, my local copy is completely up to date and I am able to access challenges in es6. Anytime things are working the way they should I usually start off with
npm run clean-and-develop.
February 14, 2023, 2:39am
I don’t think I explained myself properly.
When you type:
into the browser it redirects you to
Yet on my local copy no proper redirect occurs and it takes you to that 404 page. I will happily give the clean and develop a try however.
Ah, ya, my bad, I didn’t read carefully. Sorry about that.
February 14, 2023, 11:53am
Would you mind linking to the issue?
Many of our redirects are configured in NGINX, which you probably do not have running locally.
February 14, 2023, 3:45pm
Here you go. And you’re right I don’t have NGINX running locally.
07:08PM - 11 Feb 23 UTC
- [X] I have read and followed the [contribution guidelines](h
- [X] I have read and followed the [how to open a pull request guide](https://contribute.freecodecamp.org/#/how-to-open-a-pull-request).
- [X] My pull request targets the `main` branch of freeCodeCamp.
- [X] I have tested these changes either locally on my machine, or GitPod.
Relates to #48753
I believe some of these paths have changed since the test set was last modified as evidenced by the following errors.
February 14, 2023, 7:51pm
Those redirects are handled in
GitHub - freeCodeCamp/client-config: > deployment config for client
To be honest, I have no idea how Cypress is supposed to pull in that config. You can see what happens in CI:
Also, you can see the Cypress tests (bar one unrelated) are passing on your PR. So, the issue seems more with your local config when you run the tests.
February 15, 2023, 3:30pm
Since you are using Gatsby pages, could we perhaps leverage something like this so local clients have a chance at performing redirects using the redirects.json? Or some other recipe listed in here.
February 15, 2023, 4:48pm
I cannot remember the specific reason we did not want to go with client-side redirects, but we did specifically rule them out.
Possibly it was due to our i18n config.
February 15, 2023, 7:31pm
Would it be worthwhile for me to try to figure out how to add redirects for those particular set of routes and would there be some sort of error detection in the event things inadvertently go sideways?
February 15, 2023, 8:43pm
No, I am not sure what more you would do. We already have redirects for those routes, and have CI to test (detect) when they do not work.