Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modal 404s When Accessing Again #63

Open
jjjrmy opened this issue Aug 4, 2023 · 0 comments
Open

Modal 404s When Accessing Again #63

jjjrmy opened this issue Aug 4, 2023 · 0 comments

Comments

@jjjrmy
Copy link

jjjrmy commented Aug 4, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant