Router Navigation not working #12335
Unanswered
mrshiam
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
Uh oh!
There was an error while loading. Please reload this page.
-
In router index.js if I use
This works absolutely fine. Now when i got to ShowView my nav links works absolutely fine.
instead of this
when I use this my navigation does not work. I used this to show a single post from my api in Laravel. To match with my API path I used /posts/:id as the path. But now when I click on any of my nav links from ShowView Page I see in my console "SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the "
Beta Was this translation helpful? Give feedback.
All reactions