[wp-trac] [WordPress Trac] #31846: Using the browser's Back and Forward buttons doesn't update the media library

WordPress Trac noreply at wordpress.org
Mon May 22 14:02:01 UTC 2017


#31846: Using the browser's Back and Forward buttons doesn't update the media
library
-------------------------------------+------------------------------
 Reporter:  Faison                   |       Owner:  adamsilverstein
     Type:  defect (bug)             |      Status:  assigned
 Priority:  normal                   |   Milestone:  4.8
Component:  Media                    |     Version:  4.0
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |     Focuses:  javascript
-------------------------------------+------------------------------

Comment (by adamsilverstein):

 [attachment:31846.6.diff]:

 Correct an issue that corrupted browser history by adding multiple
 references to the root route.

 * Use { replace: true } when resetting route for close/search so history
 stays clean
 * switch from _.debounce to _.throttle so url changes don't get delayed,
 preventing a re-navigation when you changed urls quickly.

 @joemcgill can you please give it another test run?

 Thanks.

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


More information about the wp-trac mailing list