C
C
Ceretean2019-12-04 15:10:00
Vue.js
Ceretean, 2019-12-04 15:10:00

How to rewrite URL in Nuxtjs?

there is such a page structure
pages
--|news.vue
--|news
----|index.vue
----|_category.vue
----|category
------|index.vue
--- ---|_article.vue
How can I rewrite the URL making /news/:category/:article this /news/:article ?
also on the pages /news and /news/:category I have a date filter that should add the date to the URL:
/news/2012-12-01
/news/category/2012-12-01
Is this real and if so how ?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question