<a> tags defaulting to site URL?

This might be dumb question, so forgive me if I’m missing something obvious, but for some reason my tags default to site url meaning if I have something like this:

<a href="google.com">Link</a>

And I localhost my site so the url is


When I click on the tag the url is


And I can’t seem to figure out why.

Make the link absolute by adding the protocol… https://google.com.

Dude, thank you SO MUCH

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.

See URI on Wikipedia :slight_smile:

Thanks guys!