-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Mist browser doesn't redirect as expected #1560
Comments
Hm that might be a special case where our routing doenstn properly work. |
Thanks @frozeman, I'm actually struggling to reproduce. It's odd in that the request is going through, but the response comes back as 'canceled' in the dev tools. Edit: Managed to reproduce, source code here: https://github.com/morelazers/mist-redirect |
We handle the redirection in mist customised, so io would need a simple repo to be able to play around with it. |
@frozeman Yeah sorry - the source code is in the repo linked above - it should provide the same behaviour |
Hi @luclu, thanks for taking a look. My example wasn't clear enough, apologies. I've pushed an extra line or two to the repo which should make it clearer. |
Thank you @morelazers, the change makes it clear. (Mist vs. Chromium): @frozeman for your convenience: ;-) <form method="POST" action="/">
<input type="submit" value="Submit">
</form>
<div id="message"></div>
<script>
$('form').on('submit', function() {
$("#message").text('This should disappear')
$(this).unbind('submit').submit();
})
</script> |
First off - love the app, awesome work.
OSX Sierra
Mist 0.8.8
I'm using expressjs to build a dapp, and at certain points in the application, I'm using JavaScript to submit POST forms.
Within the request handler, there is code which redirects the browser back to the same page the POST request came from, but Mist isn't 'reloading' the page as it should.
I know this might be bad form, but on every other browser (that I've tried) it's not an issue, so if it's a design decision is there a reason specified?
I've tested by changing the URL that it's redirecting to, and it works great, issue only occurs when I'm trying to redirect to the same place.
Thanks!
The text was updated successfully, but these errors were encountered: