Query String modal routing

I saw this written in Next.JS:
https://toomuchdesign.github.io/next-use-contextual-routing/?state=3

This is the video tutorial:
Instagram Style Route as Modal in Next.js

A bit hard to explain but it’s not a regular modal routing.
Is there any way to do it in vue? if so how?

Thanks