# Hugo doesn't add the base url to the images

**URL:** <https://discourse.gohugo.io/t/hugo-doesnt-add-the-base-url-to-the-images/51470>\
**Category:** support\
**Created:** [September 7, 2024, 4:02pm UTC](https://discourse.gohugo.io/t/hugo-doesnt-add-the-base-url-to-the-images/51470 "2024-09-07T16:02:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mohammad9760](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/mohammad9760/32/22843_2.png) [@Mohammad9760](https://discourse.gohugo.io/u/Mohammad9760)\
**Post date:** [September 7, 2024, 4:02pm UTC](https://discourse.gohugo.io/t/hugo-doesnt-add-the-base-url-to-the-images/51470/1 "2024-09-07T16:02:58Z")

</div>

hey everyone, Im new here.  
Im making a site with hugo and Im trying to add images to my posts.  
I add the image3.png to the static folder and in the post markdown I add `![image](/image3.png)`and I have the site hosted on github pages, so the base url in the hugo.yaml file is set to `https://mohammad9760 .github.io/example` …

but when I build the site and push it to github the hosted page doesnt show the image and when inspecting the page in the browser I can see that the image is linking to /image3.png and doesnt have the base url added to it.  
any ideas what Im doing wrong?

---

<div class="post-metadata">

**Author:** ![jmooring](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/jmooring/32/4214_2.png) [@jmooring](https://discourse.gohugo.io/u/jmooring)\
**Post date:** [September 7, 2024, 4:36pm UTC](https://discourse.gohugo.io/t/hugo-doesnt-add-the-base-url-to-the-images/51470/2 "2024-09-07T16:36:18Z")

</div>

[https://discourse.gohugo.io/t/markdown-images-get-wrong-url/51033/3](https://discourse.gohugo.io/t/markdown-images-get-wrong-url/51033/3)
