cncf / landscape2

Landscape2 is a tool that generates interactive landscapes websites
https://landscape.cncf.io
Apache License 2.0
143 stars 39 forks source link

Shield.io badges result in 404 if foundation name contains a dash. #603

Closed Relequestual closed 5 months ago

Relequestual commented 5 months ago

Shields.io defines encoding required for the URL of badges with custom text.

https://shields.io/badges

Foundation names with an underscore or dash must be encoded in the URL. Underscore must be encoded to double underscore. Dash must be encoded to double dash.

It looks like the change would need to be made above this line in the code.

Here's an example of it not working as expected: https://landscape.json-schema.org/?item=adopters--json-schema-adopters--github

Thanks =]