As a bonus I also fixed an extra slash that is included in the $Url when the route of the c# method is "rebased" from the current RoutePrefix, as in "~/api/whatever".
Before the fix, that would be translated to "//api/whatever". Now it would be translated to "/api/whatever", just like other urls.
As a bonus I also fixed an extra slash that is included in the $Url when the route of the c# method is "rebased" from the current RoutePrefix, as in "~/api/whatever". Before the fix, that would be translated to "//api/whatever". Now it would be translated to "/api/whatever", just like other urls.