# Html does not render correctly

**URL:** <https://discourse.gohugo.io/t/html-does-not-render-correctly/33075>\
**Category:** support\
**Created:** [May 25, 2021, 11:52am UTC](https://discourse.gohugo.io/t/html-does-not-render-correctly/33075 "2021-05-25T11:52:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![itzikgb](https://avatars.discourse-cdn.com/v4/letter/i/f6c823/32.png) [@itzikgb](https://discourse.gohugo.io/u/itzikgb)\
**Post date:** [May 25, 2021, 11:52am UTC](https://discourse.gohugo.io/t/html-does-not-render-correctly/33075/1 "2021-05-25T11:52:07Z")

</div>

I crearted a static website, then built it using the command **hugo** , but it adds slashes to all links and the site is not rendered correctly. for example `<link href="/css/hugo-theme.css?1621751905" rel="stylesheet">` should be `<link href="css/hugo-theme.css?1621751905" rel="stylesheet">`

It is hard to remove all slashes manually. the version I use is 0.82

---

<div class="post-metadata">

**Author:** ![nternetinspired](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/nternetinspired/32/19706_2.png) [@nternetinspired](https://discourse.gohugo.io/u/nternetinspired)\
**Post date:** [May 25, 2021, 1:10pm UTC](https://discourse.gohugo.io/t/html-does-not-render-correctly/33075/2 "2021-05-25T13:10:44Z")

</div>

Hi there,

From what you have posted the output seems entirely correct, so I think you have some other issue. If the link to your styles did not have a preceding slash (an absolute path) then only the homepage would have linked styles, as all other pages would reference the style relative to themselves.

For example `https://your-site.com/about` would be trying to load the css from `https://your-site.com/about/css` which is clearly incorrect.

You’ve not provided enough information for anyone to be able to help you. Please see this guide [requesting help.](https://discourse.gohugo.io/t/requesting-help/9132)

---

<div class="post-metadata">

**Author:** ![itzikgb](https://avatars.discourse-cdn.com/v4/letter/i/f6c823/32.png) [@itzikgb](https://discourse.gohugo.io/u/itzikgb)\
**Post date:** [May 25, 2021, 2:30pm UTC](https://discourse.gohugo.io/t/html-does-not-render-correctly/33075/3 "2021-05-25T14:30:52Z")

</div>

Thank you for the answer. look on the public folder in this repo, if you will try to run this website you will notice the problem. [public · main · Production-Demos / aws-workshop · GitLab](https://gitlab.com/production-demos/aws-workshop/-/tree/main/public)

---

<div class="post-metadata">

**Author:** ![nternetinspired](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/nternetinspired/32/19706_2.png) [@nternetinspired](https://discourse.gohugo.io/u/nternetinspired)\
**Post date:** [May 25, 2021, 3:58pm UTC](https://discourse.gohugo.io/t/html-does-not-render-correctly/33075/4 "2021-05-25T15:58:37Z")

</div>

This is not a Hugo issue. Your theme apparently uses query strings for cache busting assets (i.e. the part after ? in your links), which is considered pretty old school method now and [advised against](https://www.stevesouders.com/blog/2008/08/23/revving-filenames-dont-use-querystring/). I imagine that your webserver is simply not set up for this method of cache busting.

Short answer; this looks like an issue with your theme and your web server. Quick fix? Dsiable asset busting in your theme. Longer term I’d recommend a more modern way of cache busting your assets.  
Good overvieews of the topic here: [Cache Busting Front-end Resources: Is File Name Revving Still Necessary? - Impressive Webs](https://www.impressivewebs.com/cache-busting-front-end-resources-file-name-revving-still-necessary/) and here: [Strategies for Cache-Busting CSS | CSS-Tricks](https://css-tricks.com/strategies-for-cache-busting-css/)
