0👍
If you’re using Nginx server, then making small change in nginx server configuration as described in the VueRouter guide.
Basically, whenever a new dynamic route is accessed , it falls back on the main index.html file which will handle the dynamic params and renders the page after api calls etc.
https://router.vuejs.org/guide/essentials/history-mode.html#example-server-configurations
Source:stackexchange.com