Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐞[Bug]: #517

Closed
3 of 4 tasks
uniyall opened this issue Jul 4, 2024 · 3 comments · Fixed by #518
Closed
3 of 4 tasks

🐞[Bug]: #517

uniyall opened this issue Jul 4, 2024 · 3 comments · Fixed by #518
Assignees
Labels
bug Something isn't working

Comments

@uniyall
Copy link
Contributor

uniyall commented Jul 4, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

In routes other than '/', when user reloads or hard reloads, a '404: NOT_FOUND' error is thrown by vercel.

Expected behavior

Reloading shoud not lead to a 404 error for routes that do actually exist.

Add ScreenShots

paws_bug_vercel

What browsers are you seeing the problem on?

Chrome

Record

  • I have read the Contributing Guidelines
  • I'm a GSSOC'24 contributor
  • I want to work on this issue
@uniyall uniyall added the bug Something isn't working label Jul 4, 2024
Copy link

github-actions bot commented Jul 4, 2024

Hi there! Thanks for opening this issue. We appreciate your contribution to this open-source project.
Please make sure to read this issue for important guidelines.
We aim to respond or assign your issue as soon as possible.

@uniyall
Copy link
Contributor Author

uniyall commented Jul 4, 2024

I did some research and found out that this happens because the vercel servers don’t know how to handle sub-pages (URLs). The fix is as simple as adding a vercel.json to the root directory and adding redirect rules.

@codewarnab Can I add this file? I have tested this by deploying (via vercel) a fork of the codebase (with vercel.json), and it seems to be working fine. You can test it out here - sample vercel deployment with vercel.json

@codewarnab
Copy link
Collaborator

good catch we are also facing this issue , do it and give a pr asap

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants