I want to have one route object for the following scenarios:
/a/123/b/b
What I have tried, is:
{ path: '(a/:a)?/b', ... }
This seems to work when testing the path on the Express route tester, but only for path-to-regexp version 0.1.7. Any version above that will escape special characters.
In what way is this possible with the new version of path-to-regexp that vue-router uses?
path-to-regexpversions.