-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dynamic badge generator generates wrong URL #1339
Comments
Same problem when I try to access https://mtgjson.com/json/version-full.json ( |
Is this fixed in the new frontend on staging? |
Well, it looks to be completely broken there (waited for full load). 😆 |
Ah, yes, on staging the URL is missing We could remove that json field, and change url to json url. It was done that way it is because @RedSparr0w wants to add a dynamic XML badge. |
Oh, I thought xml is working already. I really like additional options like
Looking at the code I realized that the button gets only enabled if you fill out certain information... |
Proposed fix: #1344 |
The dynamic json badge |
When I tried to use the dynamic badge creator here the inputted URL in the uri field generated a wrong URL containing two dashes (some--path) instead of one (some-path).
Manually correcting the URL fixes this.
The parameters used were:
Result:

https://img.shields.io/badge/dynamic/json.svg?label=UserScript&colorB=&prefix=v&suffix=&query=$.version&uri=https%3A%2F%2Fgitlab.com%2Fvaleth%2Fwanikani--lesson--cap%2Fraw%2Fmaster%2Fpackage.json
Fixed (and working) version:

https://img.shields.io/badge/dynamic/json.svg?label=UserScript&colorB=&prefix=v&suffix=&query=$.version&uri=https%3A%2F%2Fgitlab.com%2Fvaleth%2Fwanikani-lesson-cap%2Fraw%2Fmaster%2Fpackage.json
The text was updated successfully, but these errors were encountered: