i want to make a dynamic url for my e-ticket website using vuejs 2
expectating url like this
https://e-tickets.com/movies/{movie-title}-{movie-id}
example
https://e-tickets.com/movies/black-panter-1203
UPDATE
so i have a flow like this
- when user click movie, it will push a url like this "e-ticket.com/movies/1203" first.
- after render a view component, my page will hit an API to get movie detail (inc title, synopsis, etc), and parameter/payload API from movie id in URL
- after that, API return a response. After get the response, router will change url like this "e-ticket.com/movie/black-panther-1203" but not reload page or something. just replace old url to new url like that