Open
Description
Simply dropping '..'
from the output leads to the case where the normal (human) interpretation of a path containing two dots differs from what the spec says.
For example, the normal interpretation of the fragment
of a URI like pkg:golang/google.golang.org/genproto#googleapis/../api/annotations
is googleapis/annotations
, not googleapis/api/annotations
as in the spec.
If someone provides that URI as input, they are most likely intending the later version to be the output.
I am suggesting just following https://datatracker.ietf.org/doc/html/rfc3986#section-5.2.4 instead so that the usual meaning is preserved.