# BaseURL path (subdir) sometimes ignored by relURL, absURL

**URL:** <https://discourse.gohugo.io/t/baseurl-path-subdir-sometimes-ignored-by-relurl-absurl/11512>\
**Category:** support\
**Created:** [April 12, 2018, 11:15pm UTC](https://discourse.gohugo.io/t/baseurl-path-subdir-sometimes-ignored-by-relurl-absurl/11512 "2018-04-12T23:15:22Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![kaushalmodi](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/kaushalmodi/32/2567_2.png) [@kaushalmodi](https://discourse.gohugo.io/u/kaushalmodi)\
**Post date:** [April 13, 2018, 12:01pm UTC](https://discourse.gohugo.io/t/baseurl-path-subdir-sometimes-ignored-by-relurl-absurl/11512/10 "2018-04-13T12:01:19Z")

</div>

> [@it-gro](#):
>
> So I start using absURL with a path to the resources not starting with / now …
> 
> absUrl “vendor/cool.css” and not absURL “/vendor/cool.css” since this works (in my use cases)

Yes, looks like that’s the only way possible as you might need to support both values of canonifyURLs for your theme.

Also, I cannot find it, but there was an issue with link canonification not working as expected within CSS.

While looking for it, I came across this, so now this whole thread feels like deja vu:

> [@baseURL = mysite.com/test causes wrong menu links like mysite.com/test/test/about](https://discourse.gohugo.io/t/baseurl-mysite-com-test-causes-wrong-menu-links-like-mysite-com-test-test-about/3209):
>
> Hi, I am a Hugo newbie, so apologies if the cause of the below is obvious to you, but I cannot seem to make a baseURL work if it contains more than just the domain, e.g. https://mysite.com/test. For some reason, the links to content contain the “test” dir twice, like e.g. https://mysite.com/test/test/about/. I already searched through the docs and the forum but without a result. What I have in config.toml: baseurl = "https://mysite.com/test" [[menu.main]] name= "About" url = "/about/" A…

---

_[View the full topic](https://discourse.gohugo.io/t/baseurl-path-subdir-sometimes-ignored-by-relurl-absurl/11512)._
