miguel-perez / smoothState.js

Unobtrusive page transitions with jQuery.
MIT License
4.43k stars 508 forks source link

Forms and back button error #292

Open shrpne opened 8 years ago

shrpne commented 8 years ago

Error occurs when i submit form and then press back button. TypeError: page.cache[page.href] is undefined

There are condition that prevents to store page cache for forms. I think it cause this error.

I fix it by simple check 0491fe455d25d752388bfdd053ec0206fd967903 But maybe here is better solution?

sebastiand commented 7 years ago

I had the same problem: After submitting a form, the back button was broken.

This fix absolutely solved the problem and should make it into the core!

Did you already Add a pull request for your code?

Thumbleweed commented 7 years ago

Yes, this one worked for me to! Can you request a pull?

japettyjohn commented 7 years ago

Any data why this PR hasn't been accepted?