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

Solved 🐞 "Routing Navigation Errors" For The Pages #184

Merged
merged 1 commit into from
Jun 4, 2024

Conversation

MastanSayyad
Copy link
Contributor

Related Issue

Closes #137

Description

To rectify the {404 Not Found Error}, it is necessary to establish redirect and rewrite rules for the React Router application. These rules will assist the application in circumventing the "Page Not Found" error.

That's why I created a vercel.json file in the root directory of the project. This file will enable Vercel to configure the routing accurately.

image

  • The provided code snippet instructs Vercel to rewrite any incoming URL path to the root path.
  • This configuration ensures that when we initiate a redirect with a child path, Vercel will redirect it to the root path, effectively preventing the occurrence of the 404 Not Found Error.

Type of PR

  • Bug fix

@PatilHarshh Please take a look and review it, Thank You!!

Checklist:

  • I have performed a self-review of my code
  • I have read and followed the Contribution Guidelines.
  • I have tested the changes thoroughly before submitting this pull request.
  • I have provided relevant issue numbers, screenshots, and videos after making the changes.
  • I have commented my code, particularly in hard-to-understand areas.

Copy link

vercel bot commented Jun 2, 2024

@MastanSayyad is attempting to deploy a commit to the patilharshh's projects Team on Vercel.

A member of the Team first needs to authorize it.

Copy link

github-actions bot commented Jun 2, 2024

Thank you for submitting your pull request! 🙌 We'll review it as soon as possible. In the meantime, please ensure that your changes align with our CONTRIBUTING.md. If there are any specific instructions or feedback regarding your PR, we'll provide them here. Thanks again for your contribution! 😊

@PatilHarshh
Copy link
Owner

I did not understand Your issue . What it resolves Actually

@MastanSayyad
Copy link
Contributor Author

@PatilHarshh, the issue is vercel navigation errors of pages which gives error 404 page not found after refreshing the pages (except home page) this issue occurs only after deployment of the project, in local server or preview it does not occur....to rectify this issue i have configured some redirect rewirte rules which ensures that each page is navigating without any error

@PatilHarshh
Copy link
Owner

LGTM !

@PatilHarshh PatilHarshh merged commit 80a33af into PatilHarshh:main Jun 4, 2024
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

HIDDEN BUG🐞 : Routing Navigation Errors For The Pages
2 participants