Allow option to adjust url encoding by path | vue router path regex
Whatproblemdoesthisfeaturesolve?Ifyouneedtouseapermalinksystem,whereyourAPIroutesneedtouseapathtogettheresponse.AnexampleofthisisusingVueasafrontendforWordpress,butallowingwordpresstodictatetheurlstructure.Soforexamplewouldhavearoutethatlookslike:{name:post,path:/:permalink([0-9][/][0-9][/][\S]),component:StandardArticle}andapagewouldhavearoutethatlookslike:{name:page,path:/:permalink*,component:StandardPage}Thiswouldmeanaposturlwouldlooklike/2018/04/some-postandapagewouldlooklike/some-pageT...
What problem does this feature solve?If you need to use a permalink system, where your API routes need to use a path to get the response. An example of this is using Vue as a frontend for Wordpress, but allowing wordpress to dictate the url structure.
So for example
would have a route that looks like:
{ name: post, path: /:permalink([0-9] [/][0-9] [/][\S] ), component: StandardArticle }and a page would have a route that looks like:
{ name: page, path: /:permalink*, component: StandardPage }This would mean a post url would look like/2018/04/some-postand a page would look like/some-page
The regular expressions work but when you actually try to use them it would look like/2018%2F04%2Fsome-postfor the post route, page route would look fine since it does not have a / normally
I see this is an option in path-to-regex but t...