This is the way links work with or without Hugo. When a link starts with http(s), your browser will try to interpret this as a complete address. Otherwise, it’s interpreted as relative to your website root (when it begins with /) or the current page.