This article is right, but also misleading. Yes, people did drink water. But they preferred to drink beer, and basically they drank beer for thirst if they could. And they did this not just in the Middle Ages, but into the 20th century.
I wrote [a blog post](https://www.garshol.priv.no/blog/433.html) that goes into this in more detail.