Skip to content
This repository has been archived by the owner on Jun 21, 2022. It is now read-only.

Single posts routes #80

Open
ghost opened this issue Apr 1, 2016 · 2 comments
Open

Single posts routes #80

ghost opened this issue Apr 1, 2016 · 2 comments

Comments

@ghost
Copy link

ghost commented Apr 1, 2016

I have this permalink structure /%year%/%monthnum%/%day%/%postname%/

and noticed that when I click on a standard post link, eg.
http://localhost:8888/wp1/2016/03/23/test-3/

and refresh that page, the loading bar never disappears and console throws an error:
http://localhost:8888/wp1/wp-json/pages/2016/03/23/test-3/ 404 (Not Found)

It works if I go to a standard page instead of a post, eg.
http://localhost:8888/wp1/sample-page/

• Is there a specific reason the router uses /pages/ on posts?

@goblindegook
Copy link
Member

Hi. Could you try removing the trailing slash from the permalink setting?

@ghost
Copy link
Author

ghost commented Apr 1, 2016

Oh yeah, that works. Would probably be good to catch (that it falls back on /pages/ route).
Thanks

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant