Update "pattern" to the "path" and add a catch to catch case insensitive url.