dotnet / dotnet/dotnet-api-docs
dotnet-api-docs/xml/System/Uri.xml is wrong
Open
area-System.Runtime
Pri3
untriaged
- Dominant language
- C#
- Stars
- 949
- Forks
- 1.7k
- Avg merge
- 3d 27m
- Merged PRs (30d)
- 49
Description
double slashes do **not** get compacted.
As in
`- Canonicalizes the path for hierarchical URIs by compacting sequences such as /./, /../, and //` and
`As part of canonicalization in the constructor for some schemes, dot-segments and empty segments (`/./`, `/../`, and `//`) are compacted (in other words, they are removed). The schemes for which compacts segments include http, https, tcp, net.pipe, and net.tcp.`
As for an example,
`new Uri("http://a/b//c/d").ToString()` returns `http://a/b//c/d`. The documentation says, `http://a/b/c/d` should be returned.
Contributor guide
Assessment
This issue has not been assessed yet.