Skip to content
This repository has been archived by the owner on Sep 25, 2021. It is now read-only.

Turbolinks doesn't recognize form re-submission [POST] and navigates instead [GET]. #251

Closed
azeezahmed opened this issue Mar 20, 2017 · 6 comments

Comments

@azeezahmed
Copy link

azeezahmed commented Mar 20, 2017

Steps to Reproduce

  1. scaffold a test_app with name: string as a required field.
  2. Run migrations.
  3. start rails server. link to test app
  4. have the form to generate errors ( name can't be blank )
  5. click refresh button (F5).

Expected Behaviour

The user should see browser confirm dialog box for form resubmission as below ( POST ).
vvd2i

Actual Behaviour

The page navigates to /users ( users#index, sends GET request).

Removing //= require turbolinks from asset pipeline restores the expected behaviour.
Did not find this issue being reported, please feel free to tag if it's a duplicate of an existing issue.

Version

ruby 2.3.3p222
Rails 5.0.2
Turbolinks 5.0.1

@focused
Copy link

focused commented Apr 20, 2017

similar to #229 and #60

@kstratis
Copy link

kstratis commented Aug 15, 2017

I confirm the issue.
After an invalid submission I always land on /users/. To make matters worse, after I hit refresh, I get 404 unless I "protect" the index page somehow.

This should definitely be fixed.

@1Mark
Copy link

1Mark commented Dec 29, 2017

Is there any progress with this?

@ezr-ondrej
Copy link

+1

1 similar comment
@paulodeleo
Copy link

+1

@domchristie
Copy link
Collaborator

Closing as duplicate of #60. I have added some more detail explaining the complexity in #60 (comment)

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

No branches or pull requests

7 participants