I am trying to join path for the router (which is using path-to-regexp).
const path = properUrlJoin('some-path', '/:id?/:subnav?/:step?', {
trailingSlash: true,
queryOptions: {
encode: false,
},
})
expected output should be
/some-path/:id?/:subnav?/:step?/
but it results to
/flow/:id/?/:subnav?/:step?
I am trying to join path for the router (which is using path-to-regexp).
expected output should be
but it results to