I have problem with all Inertia projects. When the user opens the page from their browser history it opens a JSON not a React page.
How can I prevent this? I have:
"dependencies": {
"@inertiajs/react": "^2.0.12",
"axios": "^1.10.0",
"react": "^19.1.0",
"react-dom": "^19.1.0",
"swiper": "^11.2.8",
"vite": "^6.3.5",
"ziggy-js": "^2.5.3"
},