You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ie. we do a submit, click a link, then try to go back.
expected: contents of Users index (url being /Users)
got: same contents for /ShowUser and /Users
Code is at https://github.com/unhammer/ihp-back-button-repro – I just did ihp-new, created a users table with a name column, a users controller and ran it. Nothing out of the ordinary there.
That repo is using newest ihp master, but the problem was there at least as far back as 1.0.1 and I think earlier versions too.
Happens in both firefox and chrome.
A workaround is to use formForWithoutJavascript, but that loses the "interactive" feel (downgrades to web 1.0 🖳). I'd love to be able to have both the js form submission and a working back button.
[Web/FrontController.hs:8:1](http://localhost:8001/OpenEditor?path=Web/FrontController.hs&line=8&col=1)
Could not find module `Web.Controller.User'.
Use :set -v to see a list of the files searched for.
|
8 | import Web.Controller.User
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
doh, added the Web.Controller.User etc. files, and set the ihp.url to no commit (though that makes it less reproducible ;-) 012c7a3 is current master as of now)
Uh oh!
There was an error while loading. Please reload this page.
This demonstrates the problem:
back.mp4
ie. we do a submit, click a link, then try to go back.
expected: contents of Users index (url being /Users)
got: same contents for /ShowUser and /Users
Code is at https://github.com/unhammer/ihp-back-button-repro – I just did
ihp-new
, created a users table with a name column, a users controller and ran it. Nothing out of the ordinary there.That repo is using newest ihp master, but the problem was there at least as far back as 1.0.1 and I think earlier versions too.
Happens in both firefox and chrome.
A workaround is to use
formForWithoutJavascript
, but that loses the "interactive" feel (downgrades to web 1.0 🖳). I'd love to be able to have both the js form submission and a working back button.Possibly related:
The text was updated successfully, but these errors were encountered: