fixes badges url

I was choosing a badge to put in my flask project and found the badge URLs are broken. Noticed the "url_for" is set to "_external=true" then it is pointing to the development "localhost" instead of the relative path "/static/badges". Thank you for Flask!