-1

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"
  },
New contributor
ibrahim elshorbagy is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.
0

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.