[wp-trac] [WordPress Trac] #39672: REST API: Backbone URLs don't work correctly without pretty permalinks

WordPress Trac noreply at wordpress.org
Tue Jan 24 20:13:01 UTC 2017


#39672: REST API: Backbone URLs don't work correctly without pretty permalinks
-------------------------------+------------------------------
 Reporter:  rmccue             |       Owner:  adamsilverstein
     Type:  defect (bug)       |      Status:  reviewing
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  REST API           |     Version:
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |     Focuses:  javascript
-------------------------------+------------------------------
Changes (by adamsilverstein):

 * keywords:   => reporter-feedback
 * owner:   => adamsilverstein
 * status:  new => reviewing


Comment:

 @rmccue Thanks for the bug report. As far as I can tell, the client works
 correctly pretty permalinks, can you give some more details and describe
 the steps to reproduce?

 Here is what I did to test:
 * Reset permalinks to 'plain'
 * `sessionStorage.clear()`
 * no other changes, reload page with wp-api dependency added

 Testing api with the console, the client loads the schema and parses
 correctly. I fetch posts successfully:

 [[Image(https://cl.ly/302r042F3i3D/Image%202017-01-24%20at%203.04.45%20PM.png)]]

 Create a post draft:
 [[Image(https://cl.ly/2R0p1w3i0b3G/wpdev__Just_another_WordPress_site_2017-01-24_15-09-51.jpg)]]

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


More information about the wp-trac mailing list