routes
Hi guys. Super new to nuxt. I've got the following route appearing when I
console.log(router.options.routes)
, but all attempts to navigate it return me to the default "/" page. Also noticing that the
index.vue:
news.vue
Been reading https://nuxt.com/docs/getting-started/routing and i can't seem to find what I'm missing. Can anyone point me in the right direction?Nuxt
Routing · Get Started with Nuxt
Nuxt file-system routing creates a route for every file in the pages/ directory.
7 Replies
You have the nuxtpage element in your app.vue? https://nuxt.com/docs/api/components/nuxt-page
And maybe you’ll need to await the navigateTo function without return.
Yep, here's my app.vue
Awaiting the
navigateTo
, and even navigating to the url ie localhost:3000/news
is still showing the index page 😕Just to make sure, you page is in the pages folder?
Share your navigate function
Okay, I actually figured it out. I'm using a supabase extension and I had to explicitly tell it not to redirect after making a request.
Appreciate your time!
Ow damn hahah
Cool nice you found the issue
🙇🏻