net/url: JoinPath doesn't strip relative path components in all circumstances · Issue #54385 · golang/go

fmt.Println(url.JoinPath("https://go.dev", "../x")) // https://go.dev/../x fmt.Println(url.JoinPath("https://go.dev/", "../x")) // https://go.dev/x https://go.dev/play/p/gLLv0cc_jn1 JoinPath doesn'...