×
Login Register an account
Top Submissions Explore Upgoat Search Random Subverse Random Post Colorize! Site Rules Donate
3

Redirects to Cloudflare keep eaiting post and comment text

submitted by GloryBeckons to TalkDev 3.7 yearsSep 8, 2021 23:13:10 ago (+3/-0)     (TalkDev)

Browser back function not clever enough to preserve state through weird Cloudflare redirects.

Very annoying.

This could be avoided if submissions of posts and comments occurred via an ajax request, rather than a direct post/get form submission. That could avoid needing the full page refresh. Or you could simply delay triggering the refresh until after the submission was confirmed successful, and otherwise just display an error message in red above the `post` button.


1 comments block


[ - ] chrimony 1 point 3.6 yearsSep 10, 2021 10:17:22 ago (+1/-0)

This could be avoided if submissions of posts and comments occurred via an ajax request, rather than a direct post/get form submission. That could avoid needing the full page refresh.

The worst part about this site. Should fix this before adding other features.