Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent re-submitting form content in tickets on page reload / browser navigation #1770

Open
qubodup opened this issue May 24, 2024 · 0 comments

Comments

@qubodup
Copy link

qubodup commented May 24, 2024

It happened multiple times recently that users wrote the same message in one ticket. Just now it happened with 23 h delay: https://freesound.org/tickets/cfbaf4a915b44117935548b169cb222a/

The reason clearly is: they kept the page open, came back to the browser the next day, page got reloaded and they accepted the re-submitting of data because to this day there's no consistency what happens with these.

image

When posting comments, this doesn't happen thankfully. You can CTRL+R or F5 without the modal showing up or content getting re-posted. Editing your profile and editing sound metadata (and then going back in the browser) also doesn't have this behavior.

Basic searching lead to the solution being POST-REDIRECT-GET https://stackoverflow.com/questions/7897194/how-to-prevent-user-re-sending-the-form-data

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant