[wp-trac] [WordPress Trac] #23367: Remove message parameters from admin URl's in the browser address bar

WordPress Trac noreply at wordpress.org
Sun Aug 13 12:13:54 UTC 2017


#23367: Remove message parameters from admin URl's in the browser address bar
--------------------------------------+-----------------------------
 Reporter:  mark-k                    |       Owner:  ocean90
     Type:  enhancement               |      Status:  closed
 Priority:  low                       |   Milestone:  4.2
Component:  Administration            |     Version:
 Severity:  minor                     |  Resolution:  fixed
 Keywords:  good-first-bug has-patch  |     Focuses:  administration
--------------------------------------+-----------------------------

Comment (by dtbaker):

 Just a note:  this `replaceState` call on every page has a nice side
 effect. It prevents the browser re-submitting POST data on refresh/back
 button, which is really quite cool (especially dealing with poorly written
 plugins that do not redirect after submitting a form).

 It took me so long to figure out why I could refresh after a `POST` and
 the browser would do a `GET` without prompting to resubmit post data. This
 only happened with JS enabled.

 Details/examples here: https://stackoverflow.com/questions/45656405
 /browser-prevent-post-data-resubmit-on-refresh-using-only-javascript
 https://dtbaker.net/files/prevent-post-resubmit.php

 Shweet!

--
Ticket URL: <https://core.trac.wordpress.org/ticket/23367#comment:45>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list