My small project is live: https://git-space.netlify.app/
Repo: GitHub - piyushsinha24/git-space: A web application to view Github's user profile.
Landing page(https://git-space.netlify.app/ ) has a form which takes in username & shows github profile of that user with URL changed(for e.g Git-Space ).
Everything is fine till here but if refresh this page or manually type this URL in a new tab then all I get is a white blank page.
I read some stack overflow solutions & they suggested to add a _redirects file inside the public folder with content /* /index.html 200. But still no luck.
Help me please.
perry
August 7, 2020, 5:57pm
2
hey there, this is likely relevant:
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 .
I already have a _redirects file with content mentioned above. I’m still stuck with the same issue.
I just removed “homepage” from my package.json & it somehow solved the issue. Works like charm.
1 Like