Also match routes without trailing slash

Fix #11209