Ref. https://github.com/ipfs/boxo/pull/236/files#diff-d34c7069ce5e81d45082b19eb3e869ee1a086e185dcd6630e75e3ed0d368b546
This is not part of specs (but we could add this to https://specs.ipfs.tech/http-gateways/path-gateway/#appendix-notes-for-implementers), just a quality-of-life improvement we've introduced in ipfs/kubo#9785 to support non-CIDv1, legacy peerids (RSA / ed25519) encoded as Multihash in Base58 in a way that redirects user to a canonical URL.