Skip to content
This repository was archived by the owner on Jul 28, 2018. It is now read-only.

Request Method test is invalid #461

Open
AlexRiedler opened this issue Feb 17, 2015 · 0 comments
Open

Request Method test is invalid #461

AlexRiedler opened this issue Feb 17, 2015 · 0 comments

Comments

@AlexRiedler
Copy link

There is a test to check if the request_method cookie is set to 'POST' this is actually invalid since you may have an ajax request that sets 'request_method' cookie which will them make the page disable turbolinks for future pages (and back functionality breaks).

Replication Steps:

  • Go to page A (any page)
  • Go to page B (any page that supports turbolinks)
  • Go to page C (sends ajax request after, POST request in background)
  • Click Back button in browser
  • Click Back button in browser
  • Click Forward button in browser

note the last two steps will not do anything cause turbolinks is disabled for the session; page C might need to be followed through a [data-no-turbolink] tag.

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

1 participant