Make WordPress Core

Opened 21 years ago

Closed 21 years ago

Last modified 16 years ago

#455 closed defect (bug) (fixed)

Comment lost when using the "back" button after a posting error

Reported by: anonymousbugger's profile anonymousbugger Owned by: matt's profile matt
Milestone: Priority: normal
Severity: minor Version: 1.2
Component: General Keywords:
Focuses: Cc:

Description

I’m having troubles with the back button. If the commenter forgets a required field, sees the error, and then presses “back", his comment is gone and he has to retype it. I’m using Mozilla and this behavior seems to be browser dependant. IE dose not refresh the page, so it works fine. Looking at the code in wp-blog-header.php, WordPress marks the page as “always modified” in the headers, so Mozilla is actually doing the right thing.

Maybe we need to factor the post code out and make the form available on the error page for a resubmitting. Another solution would be to fix the headers so they don’t always force a reload. Another side-effect of the page reload is that the browser doesn’t return to the same place on the previous page when you hit “back" anywhere on the site, which is a drag.

Change History (2)

#2 @matt
21 years ago

  • fixed_in_version set to 1.5
  • Owner changed from anonymous to matt
  • Resolution changed from 10 to 20
  • Status changed from new to closed

The new cache headers fix this.

Note: See TracTickets for help on using tickets.