I confirm right exception throw on Windows in both cases
System.UriFormatException: Invalid URI: The format of the URI could not be determined.
Seems expected https://github.com/dotnet/corefx/blob/0bfc4f3cf62f6fc29162ad5b1b89acc14124a375/src/System.Private.Uri/src/System/Uri.cs#L3664
/cc @karelz @rmkerr
However, it will not throw any exceptions at least under Linux and Mac OS.
/relative is a valid absolute path on Unix.
Correct, Uri is weird and historically works also for file paths - that's why the example is interpreted as Unix absolute path.
The documentation you linked does not say anything about accepting file paths. Maybe it is something we could improve in the docs - thoughts @rmkerr?
Yeah, I can update the documentation for URI to describe our support for implicit file paths.
Most helpful comment
/relativeis a valid absolute path on Unix.