Closed pedrofmiguel closed 4 years ago
My problem was solved by changing the type of linked that was used by the post
in the backoffice of my wp website
From
/slug
To
month/slug
Still would be cool if i could use the url to the post with just the slug!
Sorry to bother!!
I'm trying to open open single pages and instead of rendering the component
Page.vue
it renders theSingle.vue
component giving me this errorI thought this is was my issue and was worried that the vue-router could not distinguish the difference between a
post
and apage
, because the URL was basically the same (which was a bad thought on my part). I used the urlhttp://vue-wordpress-demo.bshiluk.com/wp-json/wp/v2/pages
and saw that you were in fact navigating between POSTS and Pages with no problems.I don't know what else to do , i even cloned the repository again to try to reproduce the errors, and without changing any code the error ocurred again.
Sorry to bother , but i could use the help.
The only diferrence between my code and yours right now, is that i use dynamic routing
routes.js
and for example
loaderComponent.js
I can navigate to posts, author page and categories pages with no problem, but as soon as i enter a page it does not load