Skip to content

Pjax visits URL after server returned error 500 on form submission #342

Description

@misog

Describe the bug

Hi, when a form is submitted and server return code 500 then Pjax tries to visit the form URL with GET again. This can result in 405 Method not allowed. See:

Screenshot from 2022-07-30 15-41-12

To reproduce

  1. Submit a form with method POST and URL with Pjax
  2. Return 500 from server
  3. See that Pjax visits the URL with GET method

Expected behavior

Response is displayed and no second request is made.

Environment

- Browser: Firefox ESR 91.12.0
- Pjax: 2.4.0

Anything else?

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions