Vue modal route Instagram/Reddit/Facebook Style

I’m making a vue project that is modal route based, the main component is a post.
So i made a child route called “post” for each route.
Right now it looks like:
/post/id/1
user/post/id/1
search/post/id/1

it’s working fine, but i prefer that it will be with “/post/id/1” only, instead of creating child route for each route.

Instead of doing it i thought to make it like instagram/reddit style, like this:
Instagram Style Route as Modal in Next.js

Is there any way to make it with vue?
Thanks