Improved route matching and how the ending slash is handled on url generator.