Treat "/some-path/" as "/some-path" in dispatching route.

but treat "/" as "/"
Treat "/some//path" as "/some/path" in dispatching route.