fixed route matching for routes ending with slash