diff --git a/README.md b/README.md
index b4fea8563c845436a0e5e0b0c383b5ea6dda4b45..1a8e55abcc5d9806c81d2be2dd9cf0576a7e8280 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,4 @@
-[![coverage report](https://gitlab.kwant-project.org/works-on-my-machine/zesje/badges/pytest-cov/coverage.svg)](https://gitlab.kwant-project.org/works-on-my-machine/zesje/commits/pytest-cov)
+[![coverage report](https://gitlab.kwant-project.org/works-on-my-machine/zesje/badges/%{default_branch}/coverage.svg)](https://gitlab.kwant-project.org/works-on-my-machine/zesje/commits/pytest-cov)
 
 # Welcome to Zesje