Fixes #1298: supporting route with trailing slash.