Hey there! when I’m sending an redirect link to the mail of the user who has forgetten password it’s showing the url is not correct or Page Not Found neither the url is showing, while it was working properly in the localhost. I don’t know why this error is occuring I have also check the my auth.js, resetPassowrd & main.jsx compenent many times still couldn’t find the error.
Here is the Github repo- GitHub - Sonuu20/BloggingWeb
live link- https://bloggingvista.netlify.app
dig
March 18, 2024, 2:20am
2
You’ll find the answer in the first post in this topic
Last reviewed by Netlify Support - August, 2023
If you’re building a Single Page Application (SPA), or an app that manages its own routes (url paths), you’ll want to add a _redirects file to your publish directory with the following line to take advantage of browser history pushstate:
/* /index.html 200
You can read more information in our docs, which can be found here .
Let us know if the support guide that dig linked doesn’t solve your issue! Thanks for adding that, dig!
@dig @charlottechhum I have specified the _directs fille in the index.html directory still the issue remains the same…
dig
March 20, 2024, 3:16pm
5
Sonuu20:
the _directs fille
Was that a typo and you meant _redirects
file?
I don’t see the file in the repository you linked previously and the last commit was 3 days ago.
In this instance you’ll want the file in the public
directory for the reasons outlined here
@ayush1 You are using Vite, so your issue is the same as many others using Vite.
You haven’t read or understood the applicable documentation for Vite.
Vite isn’t magic and it won’t work with whatever random project structure you throw at it.
You should read the Vite Static Asset Handling Documentation , in particular the section concerning the Public Directory .
Note: Anyone else encountering this thread that is using Vite and has an issue with images, favicons, or _redirects files (or other s…
1 Like