It is common practice for web servers to automatically redirect users to a URL ending in a slash when that URL is a "directory". For example, entering http://www.apache.org/licenses into a browser is redirected to http://www.apache.org/licenses/ automatically.
Due to how route-based route-based mapping works based on spraying, I don’t see an obvious way to create this behavior for a specific path segment. Any ideas?
source
share