Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
fix(router) do not force an extra segment in the path #3780
Fixes the issue/todo identified in #3749
The way this is handled is by changing the way the router constructs the outgoing path. The path is constructed from these elements in order:
In all cases, the initial
The reason for this change is because in the existing code, different inputs lead to the same output, always injecting the extra
This PR also adds quite a number of test cases that were not previously covered.
The bad news is that this is a breaking change, since it changes the way the upstream path is constructed. The good news is that in the entire Kong test suite there was only 1 occurrence of a test failing because of this.