Closed shubhra14 closed 5 years ago
Are you sure that's the slug WP is generating?
I'll look into it later.
Yes, its coming from WP. I can access the post if I visit the api link directly, however, the "post" is undefined in the vue development tab
Sorry to bother you with this, did you find the time to look at this issue?
I would love wider knowledge on why it could be happening and I can try and troubleshoot it. Thank you!
Ya sorry, have been busy the past week. Will look into it either tonight or tomorrow and apply a fix.
If it's something that'll take longer to fix, I'll provide some direction, so you can implement those changes.
Apologize for the delayed response.
It is perfectly fine. I appreciate you helping me out.
Fixed in latest update.
The singleBySlug
getter was comparing an encoded slug to a decoded slug, resulting in a 404.
Just used decodeURI()
to ensure consistency.
Should for sure work for you, but let me know.
It works. Thank you!
I have learned so much digging into this. I am not a developer, however, its amazing how easy it is to build on top of this bundle once you learn the basics. Appreciate you sharing it with us.
Looking forward to more features ;)
Hi again, Another small issue. It fails to fetch the data if the slug contains html entities
/wp-json/wp/v2/pages/?slug=this-is-a-%E0%A5%90-page
. Happens with posts as well as pages.