here's a list of known issues:
everything works perfectly fine.
everything works perfectly fine.
im Normal and you'r NOT.
bear that in mind.
im not a web dev but i never saw that behaviour before when i post a reply and i go backward in page history, it brings me back to the same thread so i have to do backward twice
i have at work a tool that uses forms a lot and i never had something like this so idk what's going on but it doesnt feel normal
kaesa said:im not a web dev but i never saw that behaviour before when i post a reply and i go backward in page history, it brings me back to the same thread so i have to do backward twice
i have at work a tool that uses forms a lot and i never had something like this so idk what's going on but it doesnt feel normal
it's because there's no AJAX / nothing is dynamically inserted on the client. what happens is you send a post, then the server processes it, and it sends you a 302 redirect to go to the latest post so that you can see it on your end.
<snip> location.replace()
form.onsubmit = function(ev) {
ev.preventDefault();
let res = await fetch(window.location.pathname, { method: 'POST', body: new FormData(form) });
if( res.ok )
window.location.reload();
else
alert("failed to send post");
return false; // i think needed as well as the preventDefault? not sure
}
It's slightly odd that the post body is still saved after posting a reply