Calls to backend inserting part of router when multiple subdirectories are in URL #12796
Unanswered
GiantCrabDevil
asked this question in
Help/Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
New to vuejs, completely stumped by this.
Here is my config:
Here are my routes so far:
All pages load correctly, with home, recipe, add, and edit all make backend calls on onMounted.
Home and recipe are making the proper calls, recipe for example:
But add and edit are somehow getting part of the route path inserted, add for example:
I have no idea why the 'recipes' part is in there on this call. If I change the path in the route to one subdirectory, like 'recipe-add', then the URL is correct and my backend returns data.
Any help would be greatly appreciated.
Beta Was this translation helpful? Give feedback.
All reactions