G
G
Gimir2020-08-06 14:50:08
Vue.js
Gimir, 2020-08-06 14:50:08

How to change url after page rendering in Nuxt.js? Can this be done at all?

Good afternoon!
There are two pages, parent and child, let's call them index.vue and _id.vue
On the parent page, a request is made to the server and links with IDs for the child page are formed. When you click on the link, go to the child page - /index/{id} and make a request to the server using the id from the route parameters. But I need the route to look like this /index/{page_title} and not like this /index/{id}
Is it possible to change the route after a request to the server on the child page so that nothing breaks?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey, 2020-08-06
@Gimir

Why not put the correct address on the parent right away?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question