redacted

Returns the URL for logs and messages: the query, which may carry credentials, is replaced.

Return

toString with ?... in place of the query when there is one (a bare ? included); not meant to be parsed back. The path is still shown.