`url.path` doesn't include the query string (if any), which is why I opened the private method `path_query`. You would need to append `url.query` if present.