Opened 9 years ago
Closed 9 years ago
#39672 closed defect (bug) (worksforme)
REST API: Backbone URLs don't work correctly without pretty permalinks
| Reported by: | rmccue | Owned by: | adamsilverstein |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | REST API | Version: | |
| Severity: | normal | Keywords: | reporter-feedback |
| Cc: | Focuses: | javascript |
Description
Looks like permalinks are built incorrectly when using ugly URLs (base is http://example.com/?rest_route=/)
Change History (5)
#2
@
9 years ago
- Keywords close added
@rmccue can you verify this is an issue, in my testing the client works correctly without pretty permalinks. Any steps to reproduce?
#3
@
9 years ago
Potentially this was because I already had the schema cached in sessionStorage, then changed the permalink scheme. Haven't reproduced yet, so cannot say for certain.
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
@rmccue Thanks for the bug report. As far as I can tell, the client works correctly without pretty permalinks, can you give some more details and describe the steps to reproduce?
Here is what I did to test:
sessionStorage.clear()Testing api with the console, the client loads the schema and parses correctly. I fetch posts successfully:
Create a post draft:
