# Linking to static files with Hugo

**URL:** <https://discourse.gohugo.io/t/linking-to-static-files-with-hugo/8282>\
**Category:** support\
**Created:** [September 6, 2017, 5:09am UTC](https://discourse.gohugo.io/t/linking-to-static-files-with-hugo/8282 "2017-09-06T05:09:10Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![gaetawoo](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/gaetawoo/32/16789_2.png) [@gaetawoo](https://discourse.gohugo.io/u/gaetawoo)\
**Post date:** [September 7, 2017, 3:40am UTC](https://discourse.gohugo.io/t/linking-to-static-files-with-hugo/8282/2 "2017-09-07T03:40:39Z")

</div>

because when you use the slash in front of your link reference, it takes that from the root of the domain, which is everything before the first / in your baseURL. without the / in your link reference, it is a link relative to the current document. It’s about syntax for accomplishing different things, not trying to complete the baseURL.

---

_[View the full topic](https://discourse.gohugo.io/t/linking-to-static-files-with-hugo/8282)._
