| ▲ | neild 2 hours ago | ||||||||||||||||
> In theory, there is guidance for how to properly handle IPv6 zones in user interfaces in RFC 9884, but there's no such guidance for URLs. RFC 6874: Representing IPv6 Zone Identifiers in Address Literals and Uniform Resource Identifiers (https://www.rfc-editor.org/rfc/rfc6874.html) Which says that, yes, you need to %-encode the %, so a URL containing a host of fe80::4%eth0 becomes http://[fe80::4%25eth0]/. Yes, that's ugly. Sorry. > TL;DR: computers were a mistake. I agree entirely. (For what it's worth, I am a maintainer of Go's net/url package, and I believe net/url correctly handles zone ids in URLs. It's always possible there's something wrong I'm not aware of. Please let me know if there is!) | |||||||||||||||||
| ▲ | agwa 2 hours ago | parent | next [-] | ||||||||||||||||
That RFC is obsoleted by https://datatracker.ietf.org/doc/html/rfc9844 which removes all guidance around URIs: > This document completely obsoletes [RFC6874], which implementors of web browsers have determined is impracticable to support [LINK-LOCAL-URI], and replaces it with a generic UI requirement. Note that obsoleting [RFC6874] reverts the change that it made to the URI syntax defined by [RFC3986], so [RFC3986] is no longer updated by [RFC6874]. As far as is known, this change will have no significant impact on non-browser deployments of URIs. | |||||||||||||||||
| |||||||||||||||||
| ▲ | xena 2 hours ago | parent | prev | next [-] | ||||||||||||||||
I have published a fix to the post, it should be live within a minute. Thanks! https://github.com/Xe/site/commit/f846b489092412b8c1ef70bebd... | |||||||||||||||||
| |||||||||||||||||
| ▲ | 2 hours ago | parent | prev [-] | ||||||||||||||||
| [deleted] | |||||||||||||||||