# .RelPermalink gets canonicalized even when false

**URL:** <https://discourse.gohugo.io/t/relpermalink-gets-canonicalized-even-when-false/22566>\
**Category:** support\
**Created:** [December 31, 2019, 6:51am UTC](https://discourse.gohugo.io/t/relpermalink-gets-canonicalized-even-when-false/22566 "2019-12-31T06:51:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![abhishalya](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/abhishalya/32/10257_2.png) [@abhishalya](https://discourse.gohugo.io/u/abhishalya)\
**Post date:** [December 31, 2019, 6:51am UTC](https://discourse.gohugo.io/t/relpermalink-gets-canonicalized-even-when-false/22566/1 "2019-12-31T06:51:25Z")

</div>

I’ve set the `baseURL: somesite.com`

In my layout I have:

```auto
{{ range where .RegularPages "Section" "blog" }}
    <h3>
      <a href="{{ .RelPermalink }}" class="title">{{ .Title }}</a>
    </h3>
{{ end }}

```

But, this produces:

```auto
<h3>
  <a href="somesite.com/blog/post/" class="title">Post title</a>
</h3>

```

I expected it to be:

```auto
<h3>
  <a href="../blog/post/" class="title">Post title</a>
</h3>

```

Any suggestions why this happens?

---

<div class="post-metadata">

**Author:** ![Yudy\_Ananda](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/yudy_ananda/32/5664_2.png) [@Yudy\_Ananda](https://discourse.gohugo.io/u/Yudy_Ananda)\
**Post date:** [December 31, 2019, 7:18am UTC](https://discourse.gohugo.io/t/relpermalink-gets-canonicalized-even-when-false/22566/2 "2019-12-31T07:18:44Z")

</div>

Hi there you can try to set `relativeURLs` in your site config as `true`

> **[URL Management](https://gohugo.io/content-management/urls/#relative-urls)**
>
> Hugo supports permalinks, aliases, link canonicalization, and multiple options for handling relative vs absolute URLs.

---

<div class="post-metadata">

**Author:** ![abhishalya](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/abhishalya/32/10257_2.png) [@abhishalya](https://discourse.gohugo.io/u/abhishalya)\
**Post date:** [December 31, 2019, 7:20am UTC](https://discourse.gohugo.io/t/relpermalink-gets-canonicalized-even-when-false/22566/3 "2019-12-31T07:20:26Z")

</div>

I have them set to `true`, but that doesn’t help.

> [@Yudy\_Ananda](#):
>
> Hi there you can try to set `relativeURLs` in your site config as `true`
