RedirectSlashes middleware uses wrong path when RouteContext is available
RedirectSlashes middleware uses wrong path when RouteContext is available: a task in UltraTerminal (Harbor dataset). The RedirectSlashes middleware is incorrectly using r.URL.Path instead of rctx.RoutePath when a RouteContext is available. This causes the middleware to redirect based on the raw…
The task
The RedirectSlashes middleware is incorrectly using `r.URL.Path` instead of `rctx.RoutePath` when a RouteContext is available. This causes the middleware to redirect based on the raw URL path rather than the route pattern path, which can lead to incorrect behavior in nested routes or when the route context contains…
Part of harness-hub/UltraTerminal.