# Coverage badge URLs do not support HEAD redirection

**URL:** <https://community.codecov.com/t/coverage-badge-urls-do-not-support-head-redirection/2583>\
**Category:** Uncategorized\
**Created:** [February 20, 2021, 4:02pm UTC](https://community.codecov.com/t/coverage-badge-urls-do-not-support-head-redirection/2583 "2021-02-20T16:02:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ljharb](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/ljharb/32/580_2.png) [@ljharb](https://community.codecov.com/u/ljharb)\
**Post date:** [February 20, 2021, 4:02pm UTC](https://community.codecov.com/t/coverage-badge-urls-do-not-support-head-redirection/2583/1 "2021-02-20T16:02:31Z")

</div>

[https://codecov.io/gh/substack/tape/branch/master/graph/badge.svg](https://codecov.io/gh/substack/tape/branch/master/graph/badge.svg) works, but [https://codecov.io/gh/substack/tape/branch/HEAD/graph/badge.svg](https://codecov.io/gh/substack/tape/branch/HEAD/graph/badge.svg) does not. “HEAD” redirects to the default branch everywhere on [github.com](http://github.com), and it’d be really nice not to have the codecov badge be the only place the default branch name is hardcoded.

(see [Add coverage badge by thomasrockhu · Pull Request #544 · ljharb/tape · GitHub](https://github.com/substack/tape/pull/544))
