WP-4507 Changed method for getting the request path