Is there a way to redirect any url starting with /web/* to redirect to the same url without web?
So a url like this:
https://example.com/web/page
would redirect to:
https://example.com/page
using Vue Router, but not declaring each redirect separately?
I know I can do it like this:
const router = new VueRouter({
routes: [
{ path: '/web/page', redirect: '/page' }
]
})
But is there a way to just catch everything which starts with web to the same without web?