QR-Code-Generator
QR-Code-Generator copied to clipboard
404 Not Found Error on Refresh for Single-Page Applications
This issue reports a common problem encountered with SPAs deployed on Vercel. While navigation works smoothly using internal links from the homepage, refreshing subpages results in a 404 Not Found error.
Steps to Reproduce:
- Deploy a single-page application to Vercel.
- Navigate to the home page (https://qrbuilder.vercel.app).
- Use internal links to navigate to subpages (https://qrbuilder.vercel.app/pricing).
- Notice that navigation works as expected.
- Refresh the page on a subpage (https://qrbuilder.vercel.app/pricing).
- Observe the 404 Not Found error.
Image Before Reload:
After Reload: