Skip to content
This repository has been archived by the owner on Nov 23, 2021. It is now read-only.

Submitting a comment #45

Open
chrisgwynne opened this issue Aug 7, 2018 · 3 comments
Open

Submitting a comment #45

chrisgwynne opened this issue Aug 7, 2018 · 3 comments

Comments

@chrisgwynne
Copy link

When I submit a comment, all is fine. However when I go to refresh that page I get a dialogue box open up asking for resubmission of form details.
Anyway to be able to refresh without this occuring?

9ffbd85fd91ccc354200e8b499e02c0fd478845b

@florianpircher
Copy link
Member

This is a generic warning message that is displayed by many web-browsers when re-requesting a page that has received HTTP-Post data. If you are reloading (or “refreshing”), then the browser sends the HTTP-Post data again to the server. Kirby Comments can detect such a situation and stops you from re-submitting your comment (i.e. clicking “Continue” in the dialog window will not post the comment twice).

The dialog window is a browser feature; I don’t think Kirby Comments can prevent it.

@chrisgwynne
Copy link
Author

When posting comments on other blogs/forums etc. Using similar comments plugins i dont get such submission issues on refresh.

@florianpircher
Copy link
Member

Forms that use JavaScript/AJAX to submit the form data do not encounter this situation, as the data is not re-submitted on page reload. If you know of any example form system where plain HTTP requests are used and Google Chrome is not showing the dialog window when reloading, please let me know.

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

No branches or pull requests

2 participants