Answer the question
In order to leave comments, you need to log in
How to send one page component to different routes in NuxtJS?
There are several root routes (/:alias) that have exactly the same pattern, but they work like a category filter.
In the "normal" VueJS, I would either create each of these routes and send one component to them, or I would register /:alias
and set the template I need on it with the very last route, and inside I already wrote the logic that if the alias does not exist, then I send it to 404 But how to do this in NuxtJS
, where the router is created from files and folders?
Do not duplicate multiple files
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question