lepikhinb / momentum-modal

MIT License
442 stars 26 forks source link

Modal 404s When Accessing Again #63

Open jjjrmy opened 1 year ago

jjjrmy commented 1 year ago

I'm having a weird issue, not sure if it's Laravel related or something with Inertia or the Inertia Modal Routes... 1) You submit a Form on /create to /create/preview/, if it passes Validation, it returns a Inertia Modal and your route is changed to /create/preview/ 2) When you close the Inertia Modal you are brought back to the underlying page of /create 3) If you submit the Form again to /create/preview/ it returns 404 even though the url and the payload is exactly the same

If the Validation doesn't pass in the Laravel Controller, there is no problem to resubmit the preview multiple times. The error only seems to happen once you are shown the modal.

The only difference between the requests I'm seeing is these headers.

Screenshot 2023-08-04 at 12 27 59 PM