You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found a lot of similar issues here but with some resolution results. But I think I ought to create this issue because think problem is still actual.
I use /repositories/{id}/{branch} and /repositories/{id}/{branch}/files/structure. When I use branch feature/task1 (of cause, encoded as feature%2Ftask1) then it is not working.
I am aware of:
router.UseEncodedPath()
{branch:.+} pattern
router.UseEncodedPath() disables auto decoding of path components. In this case, I have to decode it additionally. It is not handy.
{branch:.+} brokes behavior. For example /repositories/{id}/{branch:.+} matches /repositories/123/feature%2Ftask1/files/structure. So this is wrong way.
I think that mux works incorrectly. In my opinion URL matching should be done before decoding path components.
The text was updated successfully, but these errors were encountered:
I found a lot of similar issues here but with some resolution results. But I think I ought to create this issue because think problem is still actual.
I use
/repositories/{id}/{branch}
and/repositories/{id}/{branch}/files/structure
. When I use branchfeature/task1
(of cause, encoded asfeature%2Ftask1
) then it is not working.I am aware of:
router.UseEncodedPath()
{branch:.+}
patternrouter.UseEncodedPath()
disables auto decoding of path components. In this case, I have to decode it additionally. It is not handy.{branch:.+}
brokes behavior. For example/repositories/{id}/{branch:.+}
matches/repositories/123/feature%2Ftask1/files/structure
. So this is wrong way.I think that
mux
works incorrectly. In my opinion URL matching should be done before decoding path components.The text was updated successfully, but these errors were encountered: